From 24ffc395a7b2e0b925fcb7959d743820fe269f07 Mon Sep 17 00:00:00 2001 From: John Resig Date: Tue, 15 Sep 2009 21:09:46 +0000 Subject: [PATCH] Missing a var on a for loop, caused a variable to be leaked. --- src/selector.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/selector.js b/src/selector.js index fb332465d..64222c3f6 100644 --- a/src/selector.js +++ b/src/selector.js @@ -551,7 +551,7 @@ var Expr = Sizzle.selectors = { } else if ( name === "not" ) { 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 ) { return false; }