From 08e67dfb31cb21405407d8e964290fae61dc527f Mon Sep 17 00:00:00 2001 From: Ulrich-Matthias Schäfer Date: Fri, 22 May 2015 21:57:50 +0200 Subject: Closes #337 --- src/polyfill.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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) -- cgit v1.2.3