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

Commit

Permalink
fix(dirty_checking_change_detector): correctly truncate collection ch…
Browse files Browse the repository at this point in the history
…ange record

Closes #692
  • Loading branch information
pavelgj authored and mhevery committed Mar 7, 2014
1 parent 1ca6d17 commit c1937b4
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions lib/change_detection/dirty_checking_change_detector.dart
Original file line number Diff line number Diff line change
Expand Up @@ -984,6 +984,19 @@ class _CollectionChangeRecord<V> implements CollectionChangeRecord<V> {
record = nextRecord;
}
_removedItems.clear();

if (_additionsTail != null) {
_additionsTail._nextAddedRec = null;
}
if (_movesTail != null) {
_movesTail._nextMovedRec = null;
}
if (_collectionTail != null) {
_collectionTail._nextRec = null;
}
if (_removalsTail != null) {
_removalsTail._nextRemovedRec = null;
}
}

ItemRecord _collection_reinsertAfter(ItemRecord record, ItemRecord insertPrev,
Expand Down

0 comments on commit c1937b4

Please sign in to comment.