reverting sizzle updates from previous commit, appears i had an outdated version
This commit is contained in:
parent
de07ebc1a0
commit
bbf3334db1
|
@ -551,7 +551,7 @@ var Expr = Sizzle.selectors = {
|
||||||
} else if ( name === "not" ) {
|
} else if ( name === "not" ) {
|
||||||
var not = match[3];
|
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 ) {
|
if ( not[i] === elem ) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -565,13 +565,13 @@ var Expr = Sizzle.selectors = {
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case 'only':
|
case 'only':
|
||||||
case 'first':
|
case 'first':
|
||||||
while (node = node.previousSibling) {
|
while ( (node = node.previousSibling) ) {
|
||||||
if ( node.nodeType === 1 ) return false;
|
if ( node.nodeType === 1 ) return false;
|
||||||
}
|
}
|
||||||
if ( type == 'first') return true;
|
if ( type == 'first') return true;
|
||||||
node = elem;
|
node = elem;
|
||||||
case 'last':
|
case 'last':
|
||||||
while (node = node.nextSibling) {
|
while ( (node = node.nextSibling) ) {
|
||||||
if ( node.nodeType === 1 ) return false;
|
if ( node.nodeType === 1 ) return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue