summaryrefslogtreecommitdiffstats
path: root/src/event.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/event.js')
-rw-r--r--src/event.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/event.js b/src/event.js
index 2aa9daf..8cd4188 100644
--- a/src/event.js
+++ b/src/event.js
@@ -1,6 +1,5 @@
-import {delimiter} from './regex.js'
-import {registerMethods} from './methods.js'
-import {makeInstance} from './adopter.js'
+import { delimiter } from './regex.js'
+import { makeInstance } from './adopter.js'
let listenerId = 0
@@ -125,7 +124,7 @@ export function dispatch (node, event, data) {
if (event instanceof window.Event) {
n.dispatchEvent(event)
} else {
- event = new window.CustomEvent(event, {detail: data, cancelable: true})
+ event = new window.CustomEvent(event, { detail: data, cancelable: true })
n.dispatchEvent(event)
}
return event