I am getting the following error in IE9:
\"Object doesn\'t support this action\".
There are various question about this, but mine is specifically for the followi
The following polyfill would not replacce native CustomEvent(),
Partial source from: MDN CustomEvent():
(function () {
if (typeof CustomEvent === 'function') { return; }
function customEvent(event, params) {
params = params || {bubbles: false, cancelable: false, detail: undefined};
var evt = document.createEvent('CustomEvent');
evt.initCustomEvent(event, params.bubbles, params.cancelable, params.detail);
return evt;
}
customEvent.prototype = window.Event.prototype;
window.CustomEvent = customEvent;
})();