From 0b36b26259bb1384d8a6d7d55d8738082b96c304 Mon Sep 17 00:00:00 2001 From: Jörn Zaefferer Date: Tue, 15 Sep 2009 17:39:21 +0000 Subject: fixed global variables introduced in for loop with missing var-keyword (detected via QUnit's no ?noglobals) --- src/selector.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/selector.js') 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; } -- cgit v1.2.3