mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-06-13 08:30:36 +08:00
refact(angular.bind): use concat() rather than duplicating code
Closes #4200
This commit is contained in:
committed by
Peter Bacon Darwin
parent
fbad280570
commit
14ff529fbb
@@ -921,7 +921,7 @@ function bind(self, fn) {
|
||||
return curryArgs.length
|
||||
? function() {
|
||||
return arguments.length
|
||||
? fn.apply(self, curryArgs.concat(slice.call(arguments, 0)))
|
||||
? fn.apply(self, concat(curryArgs, arguments, 0))
|
||||
: fn.apply(self, curryArgs);
|
||||
}
|
||||
: function() {
|
||||
|
||||
Reference in New Issue
Block a user