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",
"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

View File

@ -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', {

View File

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