aboutsummaryrefslogtreecommitdiffstats
path: root/src/event.js
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2018-11-30 10:04:32 +0100
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2018-11-30 10:04:32 +0100
commitac4e41609d44f186944770361cbd228bdd6bf840 (patch)
treeff77fae91df5529680b7fdfaedc2443bcef0d695 /src/event.js
parent5a72b487125beaa6b7bd81584fb9d35c4ffc43be (diff)
downloadsvg.js-ac4e41609d44f186944770361cbd228bdd6bf840.tar.gz
svg.js-ac4e41609d44f186944770361cbd228bdd6bf840.zip
CustomEvent-polyfill was not used (needed in IE) (#938)2.7.1
Diffstat (limited to 'src/event.js')
-rw-r--r--src/event.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/event.js b/src/event.js
index fae7314..1097e25 100644
--- a/src/event.js
+++ b/src/event.js
@@ -129,7 +129,7 @@ SVG.extend(SVG.Element, {
if (event instanceof window.Event) {
this.node.dispatchEvent(event)
} else {
- this.node.dispatchEvent(event = new window.CustomEvent(event, {detail: data, cancelable: true}))
+ this.node.dispatchEvent(event = new SVG.CustomEvent(event, {detail: data, cancelable: true}))
}
this._event = event
return this