2013-07-29 22:34:33 +02:00
|
|
|
require.config({
|
|
|
|
paths: {
|
|
|
|
"jquery": "components/jquery/jquery",
|
|
|
|
"locales": "locale/locales",
|
|
|
|
"sjcl": "components/sjcl/sjcl",
|
|
|
|
"tinysort": "components/tinysort/src/jquery.tinysort",
|
|
|
|
"underscore": "components/underscore/underscore",
|
|
|
|
"backbone": "components/backbone/backbone",
|
|
|
|
"localstorage": "components/backbone.localStorage/backbone.localStorage",
|
|
|
|
"strophe": "components/strophe/strophe",
|
|
|
|
"strophe.muc": "components/strophe.muc/index",
|
|
|
|
"strophe.roster": "components/strophe.roster/index",
|
|
|
|
"strophe.vcard": "components/strophe.vcard/index",
|
|
|
|
"strophe.disco": "components/strophe.disco/index"
|
|
|
|
},
|
|
|
|
|
|
|
|
// define module dependencies for modules not using define
|
|
|
|
shim: {
|
|
|
|
'backbone': {
|
|
|
|
//These script dependencies should be loaded before loading
|
|
|
|
//backbone.js
|
|
|
|
deps: [
|
|
|
|
'underscore',
|
|
|
|
'jquery'
|
|
|
|
],
|
|
|
|
//Once loaded, use the global 'Backbone' as the
|
|
|
|
//module value.
|
|
|
|
exports: 'Backbone'
|
|
|
|
},
|
|
|
|
'tinysort': { deps: ['jquery'] },
|
|
|
|
'strophe': { deps: ['jquery'] },
|
|
|
|
'underscore': { exports: '_' },
|
|
|
|
'strophe.muc': { deps: ['strophe', 'jquery'] },
|
|
|
|
'strophe.roster': { deps: ['strophe'] },
|
|
|
|
'strophe.vcard': { deps: ['strophe'] },
|
|
|
|
'strophe.disco': { deps: ['strophe'] }
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
2013-07-30 23:02:18 +02:00
|
|
|
require(["components/requirejs/require", "jquery", "converse"], function(require, $, converse) {
|
2013-07-25 00:07:44 +02:00
|
|
|
window.converse = converse;
|
|
|
|
});
|