From 423b0374b3119ffdf2656a08aa0ce6aca9dc5a48 Mon Sep 17 00:00:00 2001 From: * <8> Date: Tue, 21 Jun 2022 17:55:38 +0800 Subject: [PATCH] Match-id-b79a31edc1d9f35268db51e9087a40ffde741f26 --- libs/horizon/src/dom/DOMExternal.ts | 3 --- libs/horizon/src/event/EventBinding.ts | 12 ------------ 2 files changed, 15 deletions(-) diff --git a/libs/horizon/src/dom/DOMExternal.ts b/libs/horizon/src/dom/DOMExternal.ts index 02f11e53..5050e3f5 100644 --- a/libs/horizon/src/dom/DOMExternal.ts +++ b/libs/horizon/src/dom/DOMExternal.ts @@ -22,9 +22,6 @@ function createRoot(children: any, container: Container, callback?: Callback) { const treeRoot = createTreeRootVNode(container); container._treeRoot = treeRoot; - // 根节点挂接全量事件 - // listenDelegatedEvents(container as Element); - // 执行回调 if (typeof callback === 'function') { const cb = callback; diff --git a/libs/horizon/src/event/EventBinding.ts b/libs/horizon/src/event/EventBinding.ts index 66bf94a7..73c43c35 100644 --- a/libs/horizon/src/event/EventBinding.ts +++ b/libs/horizon/src/event/EventBinding.ts @@ -29,18 +29,6 @@ function triggerDelegatedEvent( const nativeEventTarget = nativeEvent.target || nativeEvent.srcElement; const targetVNode = getNearestVNode(nativeEventTarget); - // if (targetVNode !== null) { - // if (isMounted(targetVNode)) { - // if (targetVNode.tag === SuspenseComponent) { - // debugger - // targetVNode = null; - // } - // } else { - // debugger - // // vNode已销毁 - // targetVNode = null; - // } - // } handleEventMain(nativeEvtName, isCapture, nativeEvent, targetVNode, targetDom); }