Răsfoiți Sursa

Small change to remove need for jquery-private-external.js updates #269

JC Brand 10 ani în urmă
părinte
comite
d33faa53d0
3 a modificat fișierele cu 2 adăugiri și 14 ștergeri
  1. 1 0
      docs/CHANGES.rst
  2. 1 11
      src/build-no-jquery.js
  3. 0 3
      src/jquery-private-external.js

+ 1 - 0
docs/CHANGES.rst

@@ -18,6 +18,7 @@ Changelog
 * #251 Non-minified builds for debugging. [jcbrand]
 * #264 Remove unnecessary commas for ie8 compatibility. [Deuteu]
 * #267 Unread messages counter wrongly gets incremented by chat state notifications. [Deuteu]
+* #269 Add new build that does not include jQuery. [gbonvehi]
 
 0.8.3 (2014-09-22)
 ------------------

+ 1 - 11
src/build-no-jquery.js

@@ -10,19 +10,9 @@
             interpolate : /\{\{([\s\S]+?)\}\}/g
         }
     },
-    map: {
-        // '*' means all modules will get 'jquery-private'
-        // for their 'jquery' dependency.
-        '*': { 'jquery': 'jquery-private' },
-        // 'jquery-private' wants the real jQuery module
-        // though. If this line was not here, there would
-        // be an unresolvable cyclic dependency.
-        'jquery-private': { 'jquery': 'jquery' }
-    },
     mainConfigFile: '../main.js',
     paths: {
         "converse-dependencies":    "src/deps-full",
-        "jquery":                   "src/jquery-external",
-        "jquery-private":           "src/jquery-private-external",
+        "jquery":                   "src/jquery-external"
     }
 })

+ 0 - 3
src/jquery-private-external.js

@@ -1,3 +0,0 @@
-define(['jquery'], function (jq) {
-    return jq;
-});