Commit 26eda098 authored by John Resig's avatar John Resig

Changed .get(-Number) to use .slice() instead of .toArray() (which doesn't...

Changed .get(-Number) to use .slice() instead of .toArray() (which doesn't take any arguments). Follow-up from commit [6484].
parent 9c9dd7ce
...@@ -141,7 +141,7 @@ jQuery.fn = jQuery.prototype = { ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment