Missing a var on a for loop, caused a variable to be leaked.

This commit is contained in:
John Resig 2009-09-15 21:01:00 +00:00
parent daffb954e3
commit e907b8769f

View file

@ -551,7 +551,7 @@ var Expr = Sizzle.selectors = {
} else if ( name === "not" ) {
var not = match[3];
for ( var i = 0, l = not.length; i < l; i++ ) {
for ( i = 0, l = not.length; i < l; i++ ) {
if ( not[i] === elem ) {
return false;
}