]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
fix: add Triggers as Magellan dependency #11645 11654/head
authorNordanne Isahac <den.isahac@gmail.com>
Wed, 16 Jan 2019 05:26:48 +0000 (13:26 +0800)
committerNordanne Isahac <den.isahac@gmail.com>
Wed, 16 Jan 2019 05:26:48 +0000 (13:26 +0800)
js/foundation.magellan.js

index a7f813f91cbc488ab49b8fc4ed39738c7d0ecfb2..d2e6696f737f187f8854f05c8789b5c715528a00 100644 (file)
@@ -6,10 +6,13 @@ import { Plugin } from './foundation.core.plugin';
 import { onLoad, GetYoDigits } from './foundation.core.utils';
 import { SmoothScroll } from './foundation.smoothScroll';
 
+import { Triggers } from './foundation.util.triggers';
+
 /**
  * Magellan module.
  * @module foundation.magellan
  * @requires foundation.smoothScroll
+ * @requires foundation.util.triggers
  */
 
 class Magellan extends Plugin {
@@ -26,6 +29,9 @@ class Magellan extends Plugin {
     this.options  = $.extend({}, Magellan.defaults, this.$element.data(), options);
     this.className = 'Magellan'; // ie9 back compat
 
+    // Triggers init is idempotent, just need to make sure it is initialized
+    Triggers.init($);
+
     this._init();
     this.calcPoints();
   }