/* Bootstrap 4 for IE9 - v4.3.100 */ /* https://github.com/namiltd/bootstrap-ie */ /** * Modified code based on remPolyfill.js (c) Nicolas Bouvrette https://github.com/nbouvrette/remPolyfill * * Customizations: * * 1) Added new method `addCallBackWhenReady` to perform callbacks once the polyfill has been applied (especially useful for * onload scrolling events. * 2) Added REM support. * **/ // adds classList support (as Array) to Element.prototype for IE8-9 (function() { Object.defineProperty(Element.prototype, 'classList', { get:function(){ var element=this,domTokenList=(element.getAttribute('class')||'').replace(/^\s+|\s$/g,'').split(/\s+/g); if (domTokenList[0]==='') domTokenList.splice(0,1); function setClass(){ if (domTokenList.length > 0) element.setAttribute('class', domTokenList.join(' ')); else element.removeAttribute('class'); } domTokenList.toggle=function(className,force){ if (force!==undefined){ if (force) domTokenList.add(className); else domTokenList.remove(className); } else { if (domTokenList.indexOf(className)!==-1) domTokenList.splice(domTokenList.indexOf(className),1); else domTokenList.push(className); } setClass(); }; domTokenList.add=function(){ var args=[].slice.call(arguments); for (var i=0,l=args.length;i