Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f5fc55 commit fecfc5bCopy full SHA for fecfc5b
src/ng/parse.js
@@ -723,14 +723,17 @@ Parser.prototype = {
723
this.consume(')');
724
725
var parser = this;
726
+ var args = []; // we can safely reuse the array
727
728
return function(scope, locals) {
- var args = [];
729
var context = contextGetter ? contextGetter(scope, locals) : scope;
730
731
- for (var i = 0; i < argsFn.length; i++) {
732
- args.push(argsFn[i](scope, locals));
+
+ var i = argsFn.length;
733
+ while (i--) {
734
+ args[i] = argsFn[i](scope, locals);
735
}
736
737
var fnPtr = fn(scope, locals, context) || noop;
738
739
ensureSafeObject(context, parser.text);
0 commit comments