X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=src%2Fcore.js;h=18cd3a32ab839884ebc4d5ac0af201b56db97b63;hb=5c0b5d25602ad2f3c8e60a9b57e6f2115650f993;hp=9e1bfc67fbe0986a4eac88d43e23e81cd9f127f5;hpb=0838bdf52cf9f27ebc2bbee74fd7170e2d854c11;p=jquery.git diff --git a/src/core.js b/src/core.js index 9e1bfc6..18cd3a3 100644 --- a/src/core.js +++ b/src/core.js @@ -215,7 +215,7 @@ jQuery.fn = jQuery.prototype = { this.toArray() : // Return just the object - ( num < 0 ? this.slice(num)[ 0 ] : this[ num ] ); + ( num < 0 ? this[ this.length + num ] : this[ num ] ); }, // Take an array of elements and push it onto the stack