Skip to content

Commit

Permalink
clean up __ln property when remove node
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuyz0112 committed Sep 16, 2020
1 parent 81c2e54 commit a68684d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/record/mutation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ class DoubleLinkedList {
current.next.previous = current.previous;
}
}
if (n.__ln) {
delete n.__ln;
}
this.length--;
}
}
Expand Down

0 comments on commit a68684d

Please sign in to comment.