Browse Source

Get 3rd party dependencies from the converse obj

JC Brand 8 years ago
parent
commit
898ad3107f
1 changed files with 8 additions and 10 deletions
  1. 8 10
      src/converse-bookmarks.js

+ 8 - 10
src/converse-bookmarks.js

@@ -10,12 +10,7 @@
  * in XEP-0048.
  * in XEP-0048.
  */
  */
 (function (root, factory) {
 (function (root, factory) {
-    define([
-            "jquery",
-            "lodash",
-            "moment_with_locales",
-            "strophe",
-            "utils",
+    define([ "utils",
             "converse-core",
             "converse-core",
             "converse-muc",
             "converse-muc",
             "tpl!chatroom_bookmark_form",
             "tpl!chatroom_bookmark_form",
@@ -25,17 +20,20 @@
         ],
         ],
         factory);
         factory);
 }(this, function (
 }(this, function (
-        $, _, moment, strophe, utils,
-        converse, muc,
+        utils,
+        converse,
+        muc,
         tpl_chatroom_bookmark_form,
         tpl_chatroom_bookmark_form,
         tpl_chatroom_bookmark_toggle,
         tpl_chatroom_bookmark_toggle,
         tpl_bookmark,
         tpl_bookmark,
         tpl_bookmarks_list
         tpl_bookmarks_list
     ) {
     ) {
 
 
-    var Strophe = converse.env.Strophe,
+    var $ = converse.env.jQuery,
+        Strophe = converse.env.Strophe,
         $iq = converse.env.$iq,
         $iq = converse.env.$iq,
-        b64_sha1 = converse.env.b64_sha1;
+        b64_sha1 = converse.env.b64_sha1,
+        _ = converse.env._;
 
 
     converse.plugins.add('converse-bookmarks', {
     converse.plugins.add('converse-bookmarks', {
         overrides: {
         overrides: {