mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-23 03:30:02 +08:00
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.
This commit is contained in:
@@ -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';
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user