Commit e01f1ea5 authored by JC Brand's avatar JC Brand

Make sure Strophe is available for other dep configs as well.

parent a359dc5e
...@@ -3,19 +3,20 @@ define("converse-dependencies", [ ...@@ -3,19 +3,20 @@ define("converse-dependencies", [
"utils", "utils",
"otr", "otr",
"moment", "moment",
"backbone.browserStorage",
"backbone.overview",
"jquery.browser",
"typeahead",
"strophe", "strophe",
"strophe.roster", "strophe.roster",
"strophe.vcard", "strophe.vcard",
"strophe.disco" "strophe.disco",
], function($, utils, otr, moment) { "backbone.browserStorage",
return { "backbone.overview",
"jquery.browser",
"typeahead"
], function($, utils, otr, moment, Strophe) {
return _.extend({
'underscore': _,
'jQuery': $, 'jQuery': $,
'moment': moment,
'otr': otr, 'otr': otr,
'moment': moment,
'utils': utils 'utils': utils
}; }, Strophe);
}); });
...@@ -2,19 +2,20 @@ define("converse-dependencies", [ ...@@ -2,19 +2,20 @@ define("converse-dependencies", [
"jquery", "jquery",
"utils", "utils",
"moment", "moment",
"backbone.browserStorage",
"backbone.overview",
"jquery.browser",
"typeahead",
"strophe", "strophe",
"strophe.roster", "strophe.roster",
"strophe.vcard", "strophe.vcard",
"strophe.disco" "strophe.disco",
], function($, utils, moment) { "backbone.browserStorage",
return { "backbone.overview",
"jquery.browser",
"typeahead"
], function($, utils, moment, Strophe) {
return _.extend({
'underscore': _,
'jQuery': $, 'jQuery': $,
'otr': undefined, 'otr': undefined,
'moment': moment, 'moment': moment,
'utils': utils 'utils': utils
}; }, Strophe);
}); });
...@@ -2,21 +2,22 @@ define("converse-dependencies", [ ...@@ -2,21 +2,22 @@ define("converse-dependencies", [
"jquery", "jquery",
"utils", "utils",
"moment", "moment",
"strophe",
"strophe.roster",
"strophe.vcard",
"strophe.disco",
"bootstrapJS", // XXX: Can be removed, only for https://conversejs.org "bootstrapJS", // XXX: Can be removed, only for https://conversejs.org
"backbone.browserStorage", "backbone.browserStorage",
"backbone.overview", "backbone.overview",
"jquery.browser", "jquery.browser",
"jquery.easing", // XXX: Can be removed, only for https://conversejs.org "jquery.easing", // XXX: Can be removed, only for https://conversejs.org
"typeahead", "typeahead"
"strophe", ], function($, utils, moment, Strophe) {
"strophe.roster", return _.extend({
"strophe.vcard", 'underscore': _,
"strophe.disco"
], function($, utils, moment) {
return {
'jQuery': $, 'jQuery': $,
'otr': undefined, 'otr': otr,
'moment': moment, 'moment': moment,
'utils': utils 'utils': utils
}; }, Strophe);
}); });
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