From: Nicolas Coden Date: Wed, 4 Jul 2018 20:04:28 +0000 (+0200) Subject: fix: initialize MediaQuery in global Foundation entry X-Git-Tag: v6.6.0~3^2~132^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F11381%2Fhead;p=thirdparty%2Ffoundation%2Ffoundation-sites.git fix: initialize MediaQuery in global Foundation entry The MediaQuery utility is not initialized when imported via the global Foundation package. Not before a component using it is used This commit does the same as #10363 but for the global Foundation entry. See https://github.com/zurb/foundation-sites/issues/10363 --- diff --git a/js/entries/foundation.js b/js/entries/foundation.js index 7fbdfaf39..633c16e03 100644 --- a/js/entries/foundation.js +++ b/js/entries/foundation.js @@ -56,6 +56,7 @@ Foundation.Timer = Timer; // so no need to add it to Foundation, just init them. Touch.init($); Triggers.init($, Foundation); +MediaQuery._init(); Foundation.plugin(Abide, 'Abide'); Foundation.plugin(Accordion, 'Accordion');