From ac4e41609d44f186944770361cbd228bdd6bf840 Mon Sep 17 00:00:00 2001 From: Ulrich-Matthias Schäfer Date: Fri, 30 Nov 2018 10:04:32 +0100 Subject: CustomEvent-polyfill was not used (needed in IE) (#938) --- src/event.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/event.js') 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 -- cgit v1.2.3