Skip to content

Commit b95dabb

Browse files
jbedardIgorMinar
authored andcommitted
refactor($parse): simplifying multi-statement execution
Part of angular#8901
1 parent 0f3adec commit b95dabb

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/ng/parse.js

+2-5
Original file line numberDiff line numberDiff line change
@@ -533,11 +533,8 @@ Parser.prototype = {
533533
? statements[0]
534534
: function(self, locals) {
535535
var value;
536-
for (var i = 0; i < statements.length; i++) {
537-
var statement = statements[i];
538-
if (statement) {
539-
value = statement(self, locals);
540-
}
536+
for (var i = 0, ii = statements.length; i < ii; i++) {
537+
value = statements[i](self, locals);
541538
}
542539
return value;
543540
};

0 commit comments

Comments
 (0)