From b67a1130ee482dc5960a0e4b6b469aa79287faa5 Mon Sep 17 00:00:00 2001 From: Myles Derham Date: Wed, 1 Nov 2017 11:43:51 +1300 Subject: [PATCH] added utilities that were previously missing --- themes/base/javascript/foundation.js | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/themes/base/javascript/foundation.js b/themes/base/javascript/foundation.js index 6b2eff6..6ae0d69 100644 --- a/themes/base/javascript/foundation.js +++ b/themes/base/javascript/foundation.js @@ -24,6 +24,18 @@ import { OffCanvas } from 'foundation-sites/js/foundation.offcanvas'; // import { Toggler } from 'foundation-sites/js/foundation.toggler'; // import { Tooltip } from 'foundation-sites/js/foundation.tooltip'; // import { ResponsiveAccordionTabs } from 'foundation-sites/js/foundation.responsiveAccordionTabs'; +// ### Utilities +// import { rtl, GetYoDigits, transitionend } from 'foundation-sites/js/foundation.util.core' +// import { Box } from 'foundation-sites/js/foundation.util.box' +// import { onImagesLoaded } from 'foundation-sites/js/foundation.util.imageLoader'; +// import { Keyboard } from 'foundation-sites/js/foundation.util.keyboard'; +// import { MediaQuery } from 'foundation-sites/js/foundation.util.mediaQuery'; +// import { Motion, Move } from 'foundation-sites/js/foundation.util.motion'; +// import { Nest } from 'foundation-sites/js/foundation.util.nest'; +// import { Timer } from 'foundation-sites/js/foundation.util.timer'; +// import { Touch } from 'foundation-sites/js/foundation.util.touch'; +// import { Triggers } from 'foundation-sites/js/foundation.util.triggers'; + // ### Include plugins Foundation.plugin(Dropdown, 'Dropdown'); @@ -47,5 +59,16 @@ Foundation.plugin(OffCanvas, 'OffCanvas'); // Foundation.plugin(Toggler, 'Toggler'); // Foundation.plugin(Tooltip, 'Tooltip'); // Foundation.plugin(ResponsiveAccordionTabs, 'ResponsiveAccordionTabs'); +// ### Init Utilities +// Foundation.Box = Box; +// Foundation.onImagesLoaded = onImagesLoaded; +// Foundation.Keyboard = Keyboard; +// Foundation.MediaQuery = MediaQuery; +// Foundation.Motion = Motion; +// Foundation.Move = Move; +// Foundation.Nest = Nest; +// Foundation.Timer = Timer; +// Touch.init($); +// Triggers.init($, Foundation); export { Foundation };