Просмотр исходного кода

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

JC Brand 12 лет назад
Родитель
Сommit
8c7806425d
1 измененных файлов с 4 добавлено и 3 удалено
  1. 4 3
      converse.js

+ 4 - 3
converse.js

@@ -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()));