Changed .get(-Number) to use .slice() instead of .toArray() (which doesn't take any arguments). Follow-up from commit [6484].
This commit is contained in:
parent
9c9dd7cede
commit
26eda09892
|
@ -141,7 +141,7 @@ jQuery.fn = jQuery.prototype = {
|
||||||
this.toArray() :
|
this.toArray() :
|
||||||
|
|
||||||
// Return just the object
|
// Return just the object
|
||||||
( num < 0 ? this.toArray(num)[ 0 ] : this[ num ] );
|
( num < 0 ? this.slice(num)[ 0 ] : this[ num ] );
|
||||||
},
|
},
|
||||||
|
|
||||||
// Take an array of elements and push it onto the stack
|
// Take an array of elements and push it onto the stack
|
||||||
|
|
Loading…
Reference in a new issue