Skip to content
Permalink
Browse files
reverting sizzle updates from previous commit, appears i had an outda…
…ted version
  • Loading branch information
brandonaaron committed Jun 23, 2009
1 parent de07ebc commit bbf3334
Showing 1 changed file with 3 additions and 3 deletions.
@@ -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;

0 comments on commit bbf3334

Please sign in to comment.