X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fcore.js;h=a86ef8dfbf23624233a8aa0bc91c9f137784103d;hb=99101e02f957087410cc0b5837ef09e3dfa12466;hp=b9a2fed49f4598a305b8f659f947e71be9590053;hpb=1762dc24d66c7cbda189acffc21694884bb2ec7a;p=jquery.git diff --git a/src/core.js b/src/core.js index b9a2fed..a86ef8d 100644 --- a/src/core.js +++ b/src/core.js @@ -1177,7 +1177,7 @@ jQuery.extend({ // Go through the array, only saving the items // that pass the validator function for ( var i = 0, length = elems.length; i < length; i++ ) - if ( !inv && callback( elems[ i ], i ) || inv && !callback( elems[ i ], i ) ) + if ( !inv != !callback( elems[ i ], i ) ) ret.push( elems[ i ] ); return ret;