Browse Source

Move dependencies to the plugins that actually use them

JC Brand 9 years ago
parent
commit
2fa39f2150
3 changed files with 4 additions and 4 deletions
  1. 0 3
      src/converse-core.js
  2. 3 1
      src/converse-mam.js
  3. 1 0
      src/converse-muc.js

+ 0 - 3
src/converse-core.js

@@ -24,11 +24,9 @@
         "strophe",
         "converse-templates",
         "strophe.disco",
-        "strophe.rsm",
         "strophe.vcard",
         "backbone.browserStorage",
         "backbone.overview",
-        "typeahead",
     ], factory);
 }(this, function ($, _, dummy, utils, moment, Strophe, templates) {
     /*
@@ -149,7 +147,6 @@
         Strophe.addNamespace('CHATSTATES', 'http://jabber.org/protocol/chatstates');
         Strophe.addNamespace('CSI', 'urn:xmpp:csi:0');
         Strophe.addNamespace('ROSTERX', 'http://jabber.org/protocol/rosterx');
-        Strophe.addNamespace('RSM', 'http://jabber.org/protocol/rsm');
         Strophe.addNamespace('XFORM', 'jabber:x:data');
 
         // Instance level constants

+ 3 - 1
src/converse-mam.js

@@ -11,7 +11,8 @@
 (function (root, factory) {
     define("converse-mam", [
             "converse-core",
-            "converse-api"
+            "converse-api",
+            "strophe.rsm"
     ], factory);
 }(this, function (converse, converse_api) {
     "use strict";
@@ -26,6 +27,7 @@
     var MAM_ATTRIBUTES = ['with', 'start', 'end'];
 
     Strophe.addNamespace('MAM', 'urn:xmpp:mam:0');
+    Strophe.addNamespace('RSM', 'http://jabber.org/protocol/rsm');
 
 
     converse_api.plugins.add('mam', {

+ 1 - 0
src/converse-muc.js

@@ -13,6 +13,7 @@
     define("converse-muc", [
             "converse-core",
             "converse-api",
+            "typeahead",
             // TODO remove next two dependencies
             "converse-chatview",
             "converse-controlbox"