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:
ea78377
)
Merged in a fix from Sizzle for :not(:first).
author
John Resig
<jeresig@gmail.com>
Mon, 12 Jan 2009 14:45:58 +0000
(14:45 +0000)
committer
John Resig
<jeresig@gmail.com>
Mon, 12 Jan 2009 14:45:58 +0000
(14:45 +0000)
src/selector.js
patch
|
blob
|
history
diff --git
a/src/selector.js
b/src/selector.js
index
e1e272b
..
2235d7a
100644
(file)
--- a/
src/selector.js
+++ b/
src/selector.js
@@
-182,6
+182,8
@@
Sizzle.filter = function(expr, set, inplace, not){
if ( !match ) {
anyFound = found = true;
+ } else if ( match === true ) {
+ continue;
} else if ( match[0] === true ) {
goodArray = [];
var last = null, elem;
@@
-411,6
+413,8
@@
var Expr = Sizzle.selectors = {
}
return false;
}
+ } else if ( Expr.match.POS.test( match[0] ) ) {
+ return true;
}
return match;