X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fcore.js;h=008a88c229b62ac1fe885e6b7f493efc5316e89f;hb=bc05cb9d80b63d8a324a3773a39ac1baa181c4d2;hp=c11133f902522b7a3e8a51ad7aecbad797969be9;hpb=fc563cc42a4cf9b8d717f1fa4f397e76a132d90a;p=jquery.git diff --git a/src/core.js b/src/core.js index c11133f..008a88c 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 @@ -739,6 +739,7 @@ jQuery.extend({ } } + // Flatten any nested arrays return ret.concat.apply( [], ret ); },