mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-17 07:40:22 +00:00
call $eval in repeater only when needed
when growing children linker calls eval for new nodes, so we need to call it only for reused nodes.
This commit is contained in:
parent
c06c5a36b1
commit
89c25fe713
1 changed files with 1 additions and 1 deletions
|
|
@ -934,6 +934,7 @@ angularWidget('@ng:repeat', function(expression, element){
|
|||
childScope[valueIdent] = collection[key];
|
||||
if (keyIdent) childScope[keyIdent] = key;
|
||||
lastIterElement = childScope.$element;
|
||||
childScope.$eval();
|
||||
} else {
|
||||
// grow children
|
||||
childScope = createScope(currentScope);
|
||||
|
|
@ -950,7 +951,6 @@ angularWidget('@ng:repeat', function(expression, element){
|
|||
lastIterElement = clone;
|
||||
});
|
||||
}
|
||||
childScope.$eval();
|
||||
index ++;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue