diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2015-05-22 21:57:50 +0200 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2015-05-22 21:57:50 +0200 |
commit | 08e67dfb31cb21405407d8e964290fae61dc527f (patch) | |
tree | 5bb32acc3640b7d2d7f0977ef342e96b60824b74 /src | |
parent | b8853bf4dd547734fb4890b5a1ba73f58eba933a (diff) | |
download | svg.js-08e67dfb31cb21405407d8e964290fae61dc527f.tar.gz svg.js-08e67dfb31cb21405407d8e964290fae61dc527f.zip |
Closes #337
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) |