From 67a3315e1de1ca4ea469fc9443e97080513c909e Mon Sep 17 00:00:00 2001 From: DiPeng Date: Mon, 1 Aug 2011 22:15:33 -0700 Subject: 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. --- src/parser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/parser.js') 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'; } }); -- cgit v1.2.3