From 05ac6d485fcef5d22f10a0090a20a6065abab9f6 Mon Sep 17 00:00:00 2001 From: Tom Shaw Date: Fri, 5 Nov 2021 20:04:58 +0000 Subject: [PATCH] removed redundant handlers --- src/runtime/internal/lifecycle.ts | 26 +------------------------- 1 file changed, 1 insertion(+), 25 deletions(-) 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():