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 26eda09892459709d224f910038b8f6836bfd012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core.js
@@ -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.
You can’t perform that action at this time.