From a68684d881047a6168b47029ca86b37d1712691a Mon Sep 17 00:00:00 2001 From: Yanzhen Yu Date: Wed, 16 Sep 2020 17:28:07 +0800 Subject: [PATCH] clean up __ln property when remove node --- src/record/mutation.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/record/mutation.ts b/src/record/mutation.ts index 9bd5817a..ef781b9b 100644 --- a/src/record/mutation.ts +++ b/src/record/mutation.ts @@ -93,6 +93,9 @@ class DoubleLinkedList { current.next.previous = current.previous; } } + if (n.__ln) { + delete n.__ln; + } this.length--; } }