X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fcore.js;h=346e52d70a7e6a5d965ed4589c8790c232c5ece8;hb=b4bb6e11268c5f2fb26ddc3ff564d8656cf58f93;hp=9e1bfc67fbe0986a4eac88d43e23e81cd9f127f5;hpb=983548f8ebc3fcd1bb4600bc4b740cb8a5d4c48b;p=jquery.git diff --git a/src/core.js b/src/core.js index 9e1bfc6..346e52d 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 @@ -733,6 +733,7 @@ jQuery.extend({ } } + // Flatten any nested arrays return ret.concat.apply( [], ret ); },