clean up __ln property when remove node
This commit is contained in:
@@ -93,6 +93,9 @@ class DoubleLinkedList {
|
|||||||
current.next.previous = current.previous;
|
current.next.previous = current.previous;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (n.__ln) {
|
||||||
|
delete n.__ln;
|
||||||
|
}
|
||||||
this.length--;
|
this.length--;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user