Move dependencies to the plugins that actually use them

This commit is contained in:
JC Brand 2016-03-16 09:00:17 +00:00
parent df99fa8c0d
commit 2fa39f2150
3 changed files with 4 additions and 4 deletions

View File

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

View File

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

View File

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