浏览代码

Make work with latest strophe build

JC Brand 8 年之前
父节点
当前提交
704cef5590
共有 4 个文件被更改,包括 4 次插入14 次删除
  1. 1 9
      config.js
  2. 1 1
      package.json
  3. 1 2
      src/wrapper-end.js
  4. 1 2
      src/wrapper-no-deps.js

+ 1 - 9
config.js

@@ -29,15 +29,7 @@ require.config({
         "pluggable":                "node_modules/pluggable.js/dist/pluggable",
         "polyfill":                 "src/polyfill",
         "sizzle":                   "node_modules/jquery/sizzle/dist/sizzle",
-        "strophe":                  "node_modules/strophe.js/src/wrapper",
-        "strophe-base64":           "node_modules/strophe.js/src/base64",
-        "strophe-bosh":             "node_modules/strophe.js/src/bosh",
-        "strophe-core":             "node_modules/strophe.js/src/core",
-        "strophe-md5":              "node_modules/strophe.js/src/md5",
-        "strophe-polyfill":         "node_modules/strophe.js/src/polyfills",
-        "strophe-sha1":             "node_modules/strophe.js/src/sha1",
-        "strophe-utils":            "node_modules/strophe.js/src/utils",
-        "strophe-websocket":        "node_modules/strophe.js/src/websocket",
+        "strophe":                  "node_modules/strophe.js/strophe",
         "strophe.disco":            "node_modules/strophejs-plugin-disco/strophe.disco",
         "strophe.ping":             "node_modules/strophejs-plugin-ping/strophe.ping",
         "strophe.rsm":              "node_modules/strophejs-plugin-rsm/strophe.rsm",

+ 1 - 1
package.json

@@ -62,7 +62,7 @@
     "otr": "0.2.16",
     "phantom-jasmine": "0.1.8",
     "phantomjs": "~1.9.7-1",
-    "pluggable.js": "https://github.com/jcbrand/pluggable.js.git#e5fc6a78dd568a120674ff7325da038d5ba9b334",
+    "pluggable.js": "1.0.0",
     "po2json": "^0.4.4",
     "requirejs": "2.3.3",
     "sinon": "^1.17.3",

+ 1 - 2
src/wrapper-end.js

@@ -1,4 +1,4 @@
-/*global jQuery, _, moment, Strophe, $build, $iq, $msg, $pres, SHA1, Base64, MD5, DSA, OTR */
+/*global jQuery, _, moment, Strophe, $build, $iq, $msg, $pres, SHA1, MD5, DSA, OTR */
 define('jquery', [], function () { return jQuery; });
 define('jquery.browser', [], function () { return jQuery; });
 define('typeahead', [], function () { return jQuery; });
@@ -13,7 +13,6 @@ define('strophe', [], function () {
         '$msg':            $msg,
         '$pres':           $pres,
         'SHA1':            SHA1,
-        'Base64':          Base64,
         'MD5':             MD5,
         'b64_hmac_sha1':   SHA1.b64_hmac_sha1,
         'b64_sha1':        SHA1.b64_sha1,

+ 1 - 2
src/wrapper-no-deps.js

@@ -1,4 +1,4 @@
-/*global jQuery, _, moment, Strophe, $build, $iq, $msg, $pres, SHA1, Base64, MD5, DSA, OTR */
+/*global jQuery, _, moment, Strophe, $build, $iq, $msg, $pres, SHA1, MD5, DSA, OTR */
 define('jquery.browser', [], function () { return jQuery; });
 define('awesomplete', [], function () { return jQuery; });
 define('lodash', [], function () { return _; });
@@ -11,7 +11,6 @@ define('strophe', [], function () {
         '$msg':            $msg,
         '$pres':           $pres,
         'SHA1':            SHA1,
-        'Base64':          Base64,
         'MD5':             MD5,
         'b64_hmac_sha1':   SHA1.b64_hmac_sha1,
         'b64_sha1':        SHA1.b64_sha1,