Work around undefined jarnxmpp for now. Properly define underscore.string

This commit is contained in:
JC Brand 2012-11-02 13:55:12 +02:00
parent ac07c013af
commit 8c7806425d

View File

@ -42,7 +42,7 @@
define([
"Libraries/burry.js/burry",
"Libraries/underscore",
"Libraries/underscore.string",
"Libraries/sjcl",
"Libraries/backbone",
"Libraries/strophe.muc",
@ -56,7 +56,7 @@
evaluate : /\{\[([\s\S]+?)\]\}/g,
interpolate : /\{\{([\s\S]+?)\}\}/g
};
return factory(jarnxmpp, jQuery, store, _, console);
return factory({}, jQuery, store, _, console);
}
);
} else {
@ -66,7 +66,7 @@
evaluate : /\{\[([\s\S]+?)\]\}/g,
interpolate : /\{\{([\s\S]+?)\}\}/g
};
root.xmppchat = factory(jarnxmpp, jQuery, store, _, console || {log: function(){}});
root.xmppchat = factory({}, jQuery, store, _, console || {log: function(){}});
}
}(this, function (jarnxmpp, $, store, _, console) {
@ -436,6 +436,7 @@
'placeholder="Personal message"/>'+
'</form>'),
render: function () {
$(this.el).attr('id', this.model.get('box_id'));
$(this.el).html(this.template(this.model.toJSON()));