From 45729831b136238d6b58cd2057192fd74073dfce Mon Sep 17 00:00:00 2001 From: John Resig Date: Wed, 20 May 2009 21:52:47 +0000 Subject: [PATCH] Removed some cases of strict errors. --- src/selector.js | 6 +++--- test/index.html | 11 ++--------- 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/src/selector.js b/src/selector.js index 5bde726e..96e339d1 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 ( var i = 0, l = not.length; i < l; i++ ) { + for ( i = 0, l = not.length; i < l; i++ ) { if ( not[i] === elem ) { return false; } @@ -565,13 +565,13 @@ var Expr = Sizzle.selectors = { switch (type) { case 'only': case 'first': - while (node = node.previousSibling) { + while ( (node = node.previousSibling) ) { if ( node.nodeType === 1 ) return false; } if ( type == 'first') return true; node = elem; case 'last': - while (node = node.nextSibling) { + while ( (node = node.nextSibling) ) { if ( node.nodeType === 1 ) return false; } return true; diff --git a/test/index.html b/test/index.html index d6bea704..bec2da75 100644 --- a/test/index.html +++ b/test/index.html @@ -23,13 +23,6 @@ - - - - - - -

jQuery Test Suite

@@ -77,7 +70,7 @@ - + @@ -209,7 +202,7 @@ Z -
+
fadeIn
fadeIn
fadeOut
fadeOut