summaryrefslogtreecommitdiffstats
path: root/src/event.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/event.js')
-rw-r--r--src/event.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/event.js b/src/event.js
index 32c2cc6..115e175 100644
--- a/src/event.js
+++ b/src/event.js
@@ -133,10 +133,10 @@ SVG.extend(SVG.Element, {
, fire: function(event, data) {
// Dispatch event
- if(event instanceof Event){
+ if(event instanceof window.Event){
this.node.dispatchEvent(event)
}else{
- this.node.dispatchEvent(event = new CustomEvent(event, {detail:data, cancelable: true}))
+ this.node.dispatchEvent(event = new window.CustomEvent(event, {detail:data, cancelable: true}))
}
this._event = event