From: Nordanne Isahac Date: Wed, 16 Jan 2019 05:26:48 +0000 (+0800) Subject: fix: add Triggers as Magellan dependency #11645 X-Git-Tag: v6.6.0~3^2~41^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F11654%2Fhead;p=thirdparty%2Ffoundation%2Ffoundation-sites.git fix: add Triggers as Magellan dependency #11645 --- diff --git a/js/foundation.magellan.js b/js/foundation.magellan.js index a7f813f91..d2e6696f7 100644 --- a/js/foundation.magellan.js +++ b/js/foundation.magellan.js @@ -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(); }