diff options
author | Brandon Aaron <brandon.aaron@gmail.com> | 2009-06-23 18:14:57 +0000 |
---|---|---|
committer | Brandon Aaron <brandon.aaron@gmail.com> | 2009-06-23 18:14:57 +0000 |
commit | bbf3334db107abf72cbb3247b68b7e40d9f2cdfe (patch) | |
tree | 060b1166a13480dcf45fef06de3d4c4365d71a91 /src/selector.js | |
parent | de07ebc1a0a656c53ebee3f95802db08bb3cd680 (diff) | |
download | jquery-bbf3334db107abf72cbb3247b68b7e40d9f2cdfe.tar.gz jquery-bbf3334db107abf72cbb3247b68b7e40d9f2cdfe.zip |
reverting sizzle updates from previous commit, appears i had an outdated version
Diffstat (limited to 'src/selector.js')
-rw-r--r-- | src/selector.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/selector.js b/src/selector.js index b58507d2c..1f3ceb5c1 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; |