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

Commit 15570ee

Browse files
committed
fix(NgRepeat): remove duplicated call to _updateContext()
1 parent f8bbd35 commit 15570ee

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/directive/ng_repeat.dart

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,14 +220,12 @@ class NgRepeat {
220220
var changeFn = changeFunctions[targetIndex];
221221
if (changeFn == null) {
222222
rows[targetIndex] = _rows[targetIndex];
223-
// The element has not moved but `$last` and `$middle` might still need
224-
// to be updated
225-
var childContext = _updateContext(rows[targetIndex].scope.context, targetIndex, length);
226223
if (domIndex < 0 || leftInDom[domIndex] != targetIndex) {
227224
_viewPort.move(rows[targetIndex].view, moveAfter: previousView);
228225
leftInDom.remove(targetIndex);
229226
}
230227
domIndex--;
228+
// The element has not moved but `$last` and `$middle` might still need to be updated
231229
_updateContext(rows[targetIndex].scope.context, targetIndex, length);
232230
} else {
233231
changeFn(targetIndex, previousView);

0 commit comments

Comments
 (0)