aboutsummaryrefslogtreecommitdiffstats
path: root/src/parser.js
diff options
context:
space:
mode:
authorDiPeng2011-08-01 22:15:33 -0700
committerDiPeng2011-08-02 07:11:47 -0700
commit67a3315e1de1ca4ea469fc9443e97080513c909e (patch)
tree8dc624c2143d0365f02e3ac0cacc1cd5fb3b3fe2 /src/parser.js
parent8f0dcbab804180828d6859b1340c86cf161209fb (diff)
downloadangular.js-67a3315e1de1ca4ea469fc9443e97080513c909e.tar.bz2
refactor(angular): remove unnecessary parameter for slice function
- the end index for slice, if not specified, is default to the end of the array it operates on.
Diffstat (limited to 'src/parser.js')
-rw-r--r--src/parser.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser.js b/src/parser.js
index 76f9630e..9f2442de 100644
--- a/src/parser.js
+++ b/src/parser.js
@@ -744,7 +744,7 @@ function getterFn(path) {
' t = angular.Global.typeOf(l);\n' +
' fn = (angular[t.charAt(0).toUpperCase() + t.substring(1)]||{})["' + name + '"];\n' +
' if (fn) s = function(){ return fn.apply(l, ' +
- '[l].concat(Array.prototype.slice.call(arguments, 0, arguments.length))); };\n' +
+ '[l].concat(Array.prototype.slice.call(arguments, 0))); };\n' +
'}\n';
}
});