Skip to content

Commit

Permalink
fix: initialize MediaQuery in global Foundation entry
Browse files Browse the repository at this point in the history
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 foundation#10363 but for the global Foundation entry.

See foundation#10363
  • Loading branch information
ncoden committed Jul 4, 2018
1 parent a3ecb32 commit ff1c302
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions js/entries/foundation.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit ff1c302

Please sign in to comment.