From f2eb632bc9e9483f4663277fa9e500d6e1d25b42 Mon Sep 17 00:00:00 2001 From: Pontus Lundin Date: Wed, 18 Dec 2019 12:34:55 +0000 Subject: [PATCH] pseudo code --- src/runtime/internal/lifecycle.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/runtime/internal/lifecycle.ts b/src/runtime/internal/lifecycle.ts index a8e37e9632..809a39d717 100644 --- a/src/runtime/internal/lifecycle.ts +++ b/src/runtime/internal/lifecycle.ts @@ -28,6 +28,8 @@ export function onDestroy(fn) { } export function createEventDispatcher() { + // is compile target customElement? + // always dispatch! const component = get_current_component(); return (type: string, detail?: any) => { @@ -61,4 +63,4 @@ export function bubble(component, event) { if (callbacks) { callbacks.slice().forEach(fn => fn(event)); } -} \ No newline at end of file +}