aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAriel Flesler <aflesler@gmail.com>2008-05-12 01:21:50 +0000
committerAriel Flesler <aflesler@gmail.com>2008-05-12 01:21:50 +0000
commit440c08d768180cc668d0b2d77a9dfb14436555a5 (patch)
treef8eba2c8e05288292cb9f4a46523ad2e5b2a7b29
parent1762dc24d66c7cbda189acffc21694884bb2ec7a (diff)
downloadjquery-440c08d768180cc668d0b2d77a9dfb14436555a5.tar.gz
jquery-440c08d768180cc668d0b2d77a9dfb14436555a5.zip
jquery core: Applied #1318 to jQuery.grep
-rw-r--r--src/core.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core.js b/src/core.js
index b9a2fed49..a86ef8dfb 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;