File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 3224
3224
}
3225
3225
if ( partialArgs . length ) {
3226
3226
args = args . length
3227
- ? concat . apply ( partialArgs , args )
3227
+ ? partialArgs . concat ( slice . call ( args ) )
3228
3228
: partialArgs ;
3229
3229
}
3230
3230
if ( this instanceof bound ) {
Original file line number Diff line number Diff line change 143
143
QUnit . module ( 'lodash.bind' ) ;
144
144
145
145
( function ( ) {
146
+ test ( 'should correctly append array arguments to partially applied arguments (test in IE < 9)' , function ( ) {
147
+ var args ,
148
+ bound = _ . bind (
6849
span>function ( ) { args = slice . call ( arguments ) ; } , null , 'a' ) ;
149
+
150
+ bound ( [ 'b' ] , 'c' ) ;
151
+ deepEqual ( args , [ 'a' , [ 'b' ] , 'c' ] ) ;
152
+ } ) ;
153
+
146
154
test ( 'supports lazy bind' , function ( ) {
147
155
var object = {
148
156
'name' : 'moe' ,
You can’t perform that action at this time.
0 commit comments