diff --git a/src/runtime/internal/lifecycle.ts b/src/runtime/internal/lifecycle.ts index c60e4dffec..b696a368aa 100644 --- a/src/runtime/internal/lifecycle.ts +++ b/src/runtime/internal/lifecycle.ts @@ -32,9 +32,7 @@ export function createEventDispatcher(): { const callbacks = component.$$.callbacks[type]; - const eventBinding = component.eventBindings && Object.prototype.hasOwnProperty.call(component.eventBindings, type) ? component.eventBindings[type] : undefined; - const catchAll = component.eventBindings && Object.prototype.hasOwnProperty.call(component.eventBindings, '*') ? component.eventBindings['*'] : undefined; - const catchAllBinding = component.$$.callbacks && Object.prototype.hasOwnProperty.call(component.$$.callbacks, '*') ? component.$$.callbacks['*'] : undefined; + const catchAllBinding = component.$$.callbacks[type]; if (callbacks) { // TODO are there situations where events could be dispatched @@ -45,28 +43,6 @@ export function createEventDispatcher():