Commit 2fa39f21 authored by JC Brand's avatar JC Brand

Move dependencies to the plugins that actually use them

parent df99fa8c
......@@ -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
......
......@@ -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', {
......
......@@ -13,6 +13,7 @@
define("converse-muc", [
"converse-core",
"converse-api",
"typeahead",
// TODO remove next two dependencies
"converse-chatview",
"converse-controlbox"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment