Make sure that at least one argument is provided to .slice(), in accordance with the spec. Fixes jQuery bug #4942.
This commit is contained in:
parent
b964e56946
commit
0a6c5205d2
3 changed files with 8 additions and 6 deletions
|
@ -128,7 +128,9 @@ jQuery.fn = jQuery.prototype = {
|
|||
return this.length;
|
||||
},
|
||||
|
||||
toArray: slice,
|
||||
toArray: function(){
|
||||
return slice.call( this, 0 );
|
||||
},
|
||||
|
||||
// Get the Nth element in the matched element set OR
|
||||
// Get the whole matched element set as a clean array
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue