Prevent listeners circular ref each other @jrieken

This commit is contained in:
rebornix
2021-05-05 14:40:13 -07:00
parent 57b227b75a
commit 9c46260484
+8
View File
@@ -33,6 +33,14 @@ export class LinkedList<E> {
}
clear(): void {
let node = this._first;
while (node !== Node.Undefined) {
const next = node.next;
node.prev = Node.Undefined;
node.next = Node.Undefined;
node = next;
}
this._first = Node.Undefined;
this._last = Node.Undefined;
this._size = 0;