From 5528c6a2ee1b80770b046855fdd6be937bfafc28 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Mon, 2 Oct 2023 22:43:03 +0200 Subject: todo to fix memory leak --- src/element.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/element.ts b/src/element.ts index b3fb20c..c5ff4a5 100644 --- a/src/element.ts +++ b/src/element.ts @@ -79,6 +79,7 @@ function e_apply>(el: HT } else if (c instanceof OVar) { let undo_last: () => RedoParams | void; + // TODO if nested, this is a memory leak return c.onchangeinit(val => { let redo_param = undefined; if (undo_last) redo_param = undo_last() -- cgit v1.2.3-70-g09d2