Skip to content

Commit

Permalink
Missing a var on a for loop, caused a variable to be leaked.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeresig committed Sep 15, 2009
1 parent e907b87 commit 24ffc39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/selector.js
Expand Up @@ -551,7 +551,7 @@ var Expr = Sizzle.selectors = {
} else if ( name === "not" ) { } else if ( name === "not" ) {
var not = match[3]; var not = match[3];


for ( i = 0, l = not.length; i < l; i++ ) { for ( var i = 0, l = not.length; i < l; i++ ) {
if ( not[i] === elem ) { if ( not[i] === elem ) {
return false; return false;
} }
Expand Down

0 comments on commit 24ffc39

Please sign in to comment.