X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=src%2Fcore.js;h=07d5caf579a09ed42b47171578757834fd3428af;hb=fb6c038bf00296480234c971a1664ac01ca1479e;hp=c11133f902522b7a3e8a51ad7aecbad797969be9;hpb=fc563cc42a4cf9b8d717f1fa4f397e76a132d90a;p=jquery.git diff --git a/src/core.js b/src/core.js index c11133f..07d5caf 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