X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fcore.js;h=cb9b528eca4d46b149bc0f947db4bc5acd691cb4;hb=26eda09892459709d224f910038b8f6836bfd012;hp=7281b44fe7072ff417ad722c7c5bd5f4ccda42ec;hpb=9c9dd7cedea56a350d49ddcdf0982be9fcb6bad2;p=jquery.git diff --git a/src/core.js b/src/core.js index 7281b44..cb9b528 100644 --- a/src/core.js +++ b/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