Browse Source

Fix jquery not defined

JC Brand 9 năm trước cách đây
mục cha
commit
5bb76b103c
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      converse.js

+ 2 - 1
converse.js

@@ -219,6 +219,7 @@ require.config({
 if (typeof define !== 'undefined') {
     /* When running tests, define is not defined. */
     define("converse", [
+        "jquery",
         "converse-api",
 
         /* START: Removable components
@@ -243,7 +244,7 @@ if (typeof define !== 'undefined') {
         "converse-headline",    // Support for headline messages
         /* END: Removable components */
 
-    ], function(converse_api) {
+    ], function($, converse_api) {
         window.converse = converse_api;
         $(window).trigger('converse-loaded', converse_api);
         return converse_api;