From 1472021c2ccb71fafdd80fdfa631ab11cd338db9 Mon Sep 17 00:00:00 2001 From: Dmytro Ohorodnykov Date: Mon, 4 Dec 2023 16:13:54 +0200 Subject: [PATCH] updates to logic --- src/elements.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/elements.ts b/src/elements.ts index 858f931..d8dc112 100644 --- a/src/elements.ts +++ b/src/elements.ts @@ -607,7 +607,6 @@ export abstract class BaseView { // hack to avoid TS notification // about setting undefined value to readonly properties - delete (node as any)._el; delete (node as any)._data; delete (node as any)._events; @@ -734,8 +733,6 @@ export abstract class BaseView { * Bind an listener when element attribute changed */ onAttr(name: string, callback: (value: string, initial?: boolean) => void) { - // TODO Reuse existing observers, remove events, disconnect when deleting. - if (!this._mutationObserver) { this._mutationObserver = new MutationObserver((mutations) => { for (const m of mutations) {