Skip to content
Permalink
Browse files
Changed .get(-Number) to use .slice() instead of .toArray() (which do…
…esn't take any arguments). Follow-up from commit [6484].
  • Loading branch information
jeresig committed Jul 23, 2009
1 parent 9c9dd7c commit 26eda09
Showing 1 changed file with 1 addition and 1 deletion.
@@ -141,7 +141,7 @@ jQuery.fn = jQuery.prototype = {
this.toArray() :

// 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

0 comments on commit 26eda09

Please sign in to comment.