[extensions-web] js: Fix jQuery plugin loading



commit 15913aeda601832515d3f42c0a950525153740fc
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Tue Sep 25 22:51:59 2012 -0300

    js: Fix jQuery plugin loading
    
    More commonly known as the $.cookie error

 sweettooth/static/js/main.js |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/sweettooth/static/js/main.js b/sweettooth/static/js/main.js
index 6e021e7..0370944 100644
--- a/sweettooth/static/js/main.js
+++ b/sweettooth/static/js/main.js
@@ -1,5 +1,8 @@
 // -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
 
+// Do a horrible hack to fix jQuery plugin loading.
+require.s.contexts._.defined['jquery'] = jQuery;
+
 define(['jquery', 'messages', 'modal', 'hashParamUtils',
         'extensions', 'uploader', 'fsui',
         'jquery.cookie', 'jquery.jeditable',



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]