aboutsummaryrefslogtreecommitdiffstats
path: root/src/Scope.js
diff options
context:
space:
mode:
authorMisko Hevery2010-08-13 09:50:03 -0700
committerMisko Hevery2010-08-13 09:50:03 -0700
commit5c14a35e6210fb8500456b3b4ca026cfeb889776 (patch)
treedadd3a95413f72fb6b15728785fcc0769e9569b7 /src/Scope.js
parent0bd7e4fe75bc02fa1cf67a0c66255db35bfbfe8f (diff)
downloadangular.js-5c14a35e6210fb8500456b3b4ca026cfeb889776.tar.bz2
initial perf testing
Diffstat (limited to 'src/Scope.js')
-rw-r--r--src/Scope.js2
1 files changed, 1 insertions, 1 deletions
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';
}
});