Skip to main content

Bug Tracker

Side navigation

Ticket #1318: grep.patch


File grep.patch, 0.4 KB (added by rformato, June 23, 2007 08:06PM UTC)

Patch

Index: jquery.js
===================================================================
--- jquery.js	(revisione 2146)
+++ jquery.js	(copia locale)
@@ -1721,7 +1721,7 @@
 		// Go through the array, only saving the items
 		// that pass the validator function
 		for ( var i = 0, el = elems.length; i < el; i++ )
-			if ( !inv && fn(elems[i],i) || inv && !fn(elems[i],i) )
+			if ( !inv != !fn(elems[i],i) )
 				result.push( elems[i] );
 
 		return result;

Download in other formats:

Original Format