From: MilesStanton Date: Thu, 7 Nov 2019 10:38:24 +0000 (+0000) Subject: Fix: Interchange initialises own triggers X-Git-Tag: v6.6.2^2~32^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3e4c8b79c1c38f80f20fa012f7a333a6f54229b1;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Fix: Interchange initialises own triggers Resolve issue where resizeme event will not trigger without other plugins, because triggers are never initialised. --- diff --git a/js/foundation.interchange.js b/js/foundation.interchange.js index fcdd54c3f..80b4fec81 100644 --- a/js/foundation.interchange.js +++ b/js/foundation.interchange.js @@ -5,6 +5,7 @@ import { MediaQuery } from './foundation.util.mediaQuery'; import { Plugin } from './foundation.core.plugin'; import { GetYoDigits } from './foundation.core.utils'; +import { Triggers } from './foundation.util.triggers'; /** * Interchange module. @@ -28,6 +29,9 @@ class Interchange extends Plugin { this.currentPath = ''; this.className = 'Interchange'; // ie9 back compat + // Triggers init is idempotent, just need to make sure it is initialized + Triggers.init($); + this._init(); this._events(); }