Skip to content
Permalink
Browse files

jquery core: Applied #1318 to jQuery.grep

  • Loading branch information
flesler committed May 12, 2008
1 parent 1762dc2 commit 440c08d768180cc668d0b2d77a9dfb14436555a5
Showing with 1 addition and 1 deletion.
  1. +1 −1 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;

0 comments on commit 440c08d

Please sign in to comment.
You can’t perform that action at this time.