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 bbf3334db107abf72cbb3247b68b7e40d9f2cdfe
Showing with 3 additions and 3 deletions.
  1. +3 −3 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;

0 comments on commit bbf3334

Please sign in to comment.
You can’t perform that action at this time.