Skip to content
Permalink
Browse files

Merged in a fix from Sizzle for :not(:first).

  • Loading branch information
jeresig committed Jan 12, 2009
1 parent ea78377 commit 95094d16858f872ccf99ac50f605a88fbdcbe1bc
Showing with 4 additions and 0 deletions.
  1. +4 −0 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;

0 comments on commit 95094d1

Please sign in to comment.
You can’t perform that action at this time.