git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1762dc2
)
jquery core: Applied #1318 to jQuery.grep
author
Ariel Flesler
<aflesler@gmail.com>
Mon, 12 May 2008 01:21:50 +0000
(
01:21
+0000)
committer
Ariel Flesler
<aflesler@gmail.com>
Mon, 12 May 2008 01:21:50 +0000
(
01:21
+0000)
src/core.js
patch
|
blob
|
history
diff --git
a/src/core.js
b/src/core.js
index
b9a2fed
..
a86ef8d
100644
(file)
--- 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;