Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion EventListener.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,4 +142,16 @@ this.Element && Element.prototype.attachEvent && !Element.prototype.addEventList

return event;
};
})();
})();

// polyfill for IE9-10 taken from https://gist.github.com/james2doyle/7945320
(function () {
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.CustomEvent.prototype;
window.CustomEvent = CustomEvent;
})();