Commit 95094d16 authored by John Resig's avatar John Resig

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

parent ea783777
...@@ -182,6 +182,8 @@ Sizzle.filter = function(expr, set, inplace, not){ ...@@ -182,6 +182,8 @@ Sizzle.filter = function(expr, set, inplace, not){
if ( !match ) { if ( !match ) {
anyFound = found = true; anyFound = found = true;
} else if ( match === true ) {
continue;
} else if ( match[0] === true ) { } else if ( match[0] === true ) {
goodArray = []; goodArray = [];
var last = null, elem; var last = null, elem;
...@@ -411,6 +413,8 @@ var Expr = Sizzle.selectors = { ...@@ -411,6 +413,8 @@ var Expr = Sizzle.selectors = {
} }
return false; return false;
} }
} else if ( Expr.match.POS.test( match[0] ) ) {
return true;
} }
return match; return match;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment