Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 14ff529

Browse files
littlemaneuverpetebacondarwin
authored andcommitted
refact(angular.bind): use concat() rather than duplicating code
Closes #4200
1 parent fbad280 commit 14ff529

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Angular.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -921,7 +921,7 @@ function bind(self, fn) {
921921
return curryArgs.length
922922
? function() {
923923
return arguments.length
924-
? fn.apply(self, curryArgs.concat(slice.call(arguments, 0)))
924+
? fn.apply(self, concat(curryArgs, arguments, 0))
925925
: fn.apply(self, curryArgs);
926926
}
927927
: function() {

0 commit comments

Comments
 (0)