Bug Tracker

Ticket #1318: grep.patch

File grep.patch, 459 bytes (added by rformato, 1 year ago)

Patch

  • jquery.js

     
    17211721        // Go through the array, only saving the items 
    17221722        // that pass the validator function 
    17231723        for ( var i = 0, el = elems.length; i < el; i++ ) 
    1724             if ( !inv && fn(elems[i],i) || inv && !fn(elems[i],i) ) 
     1724            if ( !inv != !fn(elems[i],i) ) 
    17251725                result.push( elems[i] ); 
    17261726 
    17271727        return result;