assets/js/theme/src/all.js in kcc-gem-theme-1.27.6 vs assets/js/theme/src/all.js in kcc-gem-theme-1.27.7
- old
+ new
@@ -12,15 +12,11 @@
//import './babelTest.js';
//import test from './test.js';
document.addEventListener('DOMContentLoaded', function() {
highlightNav();
- wrapPowerText();
- initSliders();
- walkText(document.body);
- footerDate();
- lazyLoad();
+ moveSearchIcon();
watchForMenuClicks();
// polyfill for Element.closest() b/c IE can't handle an anchor.match() when the anchor has another element inside it (Like spans used for BS4 menu toggler)
if (!Element.prototype.matches) {
Element.prototype.matches = Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;
}
@@ -34,10 +30,15 @@
el = el.parentElement || el.parentNode;
} while (el !== null && el.nodeType === 1);
return null;
};
}
- moveSearchIcon();
+ //test();
+ wrapPowerText();
+ initSliders();
+ walkText(document.body);
+ footerDate();
+ lazyLoad();
accordion();
searchToggle();
closeMenuOnClick();
});