Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.

Commit c1937b4

Browse files
pavelgjmhevery
authored andcommitted
fix(dirty_checking_change_detector): correctly truncate collection change record
Closes #692
1 parent 1ca6d17 commit c1937b4

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

lib/change_detection/dirty_checking_change_detector.dart

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -984,6 +984,19 @@ class _CollectionChangeRecord<V> implements CollectionChangeRecord<V> {
984984
record = nextRecord;
985985
}
986986
_removedItems.clear();
987+
988+
if (_additionsTail != null) {
989+
_additionsTail._nextAddedRec = null;
990+
}
991+
if (_movesTail != null) {
992+
_movesTail._nextMovedRec = null;
993+
}
994+
if (_collectionTail != null) {
995+
_collectionTail._nextRec = null;
996+
}
997+
if (_removalsTail != null) {
998+
_removalsTail._nextRemovedRec = null;
999+
}
9871000
}
9881001

9891002
ItemRecord _collection_reinsertAfter(ItemRecord record, ItemRecord insertPrev,

0 commit comments

Comments
 (0)