jQuery: The Write Less, Do More JavaScript Library

Changeset 5558

Show
Ignore:
Timestamp:
05/12/08 01:21:50 (2 months ago)
Author:
aflesler
Message:

jquery core: Applied #1318 to jQuery.grep

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/jquery/src/core.js

    r5554 r5558  
    11781178        // that pass the validator function 
    11791179        for ( var i = 0, length = elems.length; i < length; i++ ) 
    1180             if ( !inv && callback( elems[ i ], i ) || inv && !callback( elems[ i ], i ) ) 
     1180            if ( !inv != !callback( elems[ i ], i ) ) 
    11811181                ret.push( elems[ i ] ); 
    11821182