From 5c14a35e6210fb8500456b3b4ca026cfeb889776 Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Fri, 13 Aug 2010 09:50:03 -0700 Subject: initial perf testing --- src/Scope.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/Scope.js b/src/Scope.js index 30e56915..27fafc3a 100644 --- a/src/Scope.js +++ b/src/Scope.js @@ -76,7 +76,7 @@ function getterFn(path){ code += ' type = angular.Global.typeOf(last);\n'; code += ' fn = (angular[type.charAt(0).toUpperCase() + type.substring(1)]||{})["' + name + '"];\n'; code += ' if (fn)\n'; - code += ' self = function(){ return fn.apply(last, [last].concat(slice.call(arguments, 0, arguments.length))); };\n'; + code += ' self = function(){ return fn.apply(last, [last].concat(Array.prototype.slice.call(arguments, 0, arguments.length))); };\n'; code += ' }\n'; } }); -- cgit v1.2.3