diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/polyfill.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/polyfill.js b/src/polyfill.js index a913337..06ae0fd 100644 --- a/src/polyfill.js +++ b/src/polyfill.js @@ -1,7 +1,7 @@ // Add CustomEvent to IE9 and IE10 if (typeof CustomEvent !== 'function') { // Code from: https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent - function CustomEvent (event, options) { + var CustomEvent = function(event, options) { options = options || { bubbles: false, cancelable: false, detail: undefined } var e = document.createEvent('CustomEvent') e.initCustomEvent(event, options.bubbles, options.cancelable, options.detail) |