@@ -3885,7 +3885,7 @@ var Sizzle = function( selector, context, results, seed ) {
3885
3885
if ( context . nodeType !== 1 && context . nodeType !== 9 ) {
3886
3886
return [ ] ;
3887
3887
}
3888
-
3888
+
3889
3889
if ( ! selector || typeof selector !== "string" ) {
3890
3890
return results ;
3891
3891
}
@@ -3895,17 +3895,17 @@ var Sizzle = function( selector, context, results, seed ) {
3895
3895
contextXML = Sizzle . isXML ( context ) ,
3896
3896
parts = [ ] ,
3897
3897
soFar = selector ;
3898
-
3898
+
3899
3899
// Reset the position of the chunker regexp (start from head)
3900
3900
do {
3901
3901
chunker . exec ( "" ) ;
3902
3902
m = chunker . exec ( soFar ) ;
3903
3903
3904
3904
if ( m ) {
3905
3905
soFar = m [ 3 ] ;
3906
-
3906
+
3907
3907
parts . push ( m [ 1 ] ) ;
3908
-
3908
+
3909
3909
if ( m [ 2 ] ) {
3910
3910
extra = m [ 3 ] ;
3911
3911
break ;
@@ -3929,7 +3929,7 @@ var Sizzle = function( selector, context, results, seed ) {
3929
3929
if ( Expr . relative [ selector ] ) {
3930
3930
selector += parts . shift ( ) ;
3931
3931
}
3932
-
3932
+
3933
3933
set = posProcess ( selector , set , seed ) ;
3934
3934
}
3935
3935
}
@@ -4057,7 +4057,7 @@ Sizzle.find = function( expr, context, isXML ) {
4057
4057
4058
4058
for ( i = 0 , len = Expr . order . length ; i < len ; i ++ ) {
4059
4059
type = Expr . order [ i ] ;
4060
-
4060
+
4061
4061
if ( ( match = Expr . leftMatch [ type ] . exec ( expr ) ) ) {
4062
4062
left = match [ 1 ] ;
4063
4063
match . splice ( 1 , 1 ) ;
@@ -4429,7 +4429,7 @@ var Expr = Sizzle.selectors = {
4429
4429
4430
4430
ATTR : function ( match , curLoop , inplace , result , not , isXML ) {
4431
4431
var name = match [ 1 ] = match [ 1 ] . replace ( rBackslash , "" ) ;
4432
-
4432
+
4433
4433
if ( ! isXML && Expr . attrMap [ name ] ) {
4434
4434
match [ 1 ] = Expr . attrMap [ name ] ;
4435
4435
}
@@ -4463,7 +4463,7 @@ var Expr = Sizzle.selectors = {
4463
4463
} else if ( Expr . match . POS . test ( match [ 0 ] ) || Expr . match . CHILD . test ( match [ 0 ] ) ) {
4464
4464
return true ;
4465
4465
}
4466
-
4466
+
4467
4467
return match ;
4468
4468
} ,
4469
4469
@@ -4473,7 +4473,7 @@ var Expr = Sizzle.selectors = {
4473
4473
return match ;
4474
4474
}
4475
4475
} ,
4476
-
4476
+
4477
4477
filters : {
4478
4478
enabled : function ( elem ) {
4479
4479
return elem . disabled === false && elem . type !== "hidden" ;
@@ -4486,14 +4486,14 @@ var Expr = Sizzle.selectors = {
4486
4486
checked : function ( elem ) {
4487
4487
return elem . checked === true ;
4488
4488
} ,
4489
-
4489
+
4490
4490
selected : function ( elem ) {
4491
4491
// Accessing this property makes selected-by-default
4492
4492
// options in Safari work properly
4493
4493
if ( elem . parentNode ) {
4494
4494
elem . parentNode . selectedIndex ;
4495
4495
}
4496
-
4496
+
4497
4497
return elem . selected === true ;
4498
4498
} ,
4499
4499
@@ -4515,7 +4515,7 @@ var Expr = Sizzle.selectors = {
4515
4515
4516
4516
text : function ( elem ) {
4517
4517
var attr = elem . getAttribute ( "type" ) , type = elem . type ;
4518
- // IE6 and 7 will map elem.type to 'text' for new HTML5 types (search, etc)
4518
+ // IE6 and 7 will map elem.type to 'text' for new HTML5 types (search, etc)
4519
4519
// use getAttribute instead to test this case
4520
4520
return elem . nodeName . toLowerCase ( ) === "input" && "text" === type && ( attr === type || attr === null ) ;
4521
4521
} ,
@@ -4634,21 +4634,21 @@ var Expr = Sizzle.selectors = {
4634
4634
case "only" :
4635
4635
case "first" :
4636
4636
while ( ( node = node . previousSibling ) ) {
4637
- if ( node . nodeType === 1 ) {
4638
- return false ;
4637
+ if ( node . nodeType === 1 ) {
4638
+ return false ;
4639
4639
}
4640
4640
}
4641
4641
4642
- if ( type === "first" ) {
4643
- return true ;
4642
+ if ( type === "first" ) {
4643
+ return true ;
4644
4644
}
4645
4645
4646
4646
node = elem ;
4647
4647
4648
4648
case "last" :
4649
4649
while ( ( node = node . nextSibling ) ) {
4650
- if ( node . nodeType === 1 ) {
4651
- return false ;
4650
+ if ( node . nodeType === 1 ) {
4651
+ return false ;
4652
4652
}
4653
4653
}
4654
4654
@@ -4661,22 +4661,22 @@ var Expr = Sizzle.selectors = {
4661
4661
if ( first === 1 && last === 0 ) {
4662
4662
return true ;
4663
4663
}
4664
-
4664
+
4665
4665
doneName = match [ 0 ] ;
4666
4666
parent = elem . parentNode ;
4667
-
4667
+
4668
4668
if ( parent && ( parent [ expando ] !== doneName || ! elem . nodeIndex ) ) {
4669
4669
count = 0 ;
4670
-
4670
+
4671
4671
for ( node = parent . firstChild ; node ; node = node . nextSibling ) {
4672
4672
if ( node . nodeType === 1 ) {
4673
4673
node . nodeIndex = ++ count ;
4674
4674
}
4675
- }
4675
+ }
4676
4676
4677
4677
parent [ expando ] = doneName ;
4678
4678
}
4679
-
4679
+
4680
4680
diff = elem . nodeIndex - last ;
4681
4681
4682
4682
if ( first === 0 ) {
@@ -4695,7 +4695,7 @@ var Expr = Sizzle.selectors = {
4695
4695
TAG : function ( elem , match ) {
4696
4696
return ( match === "*" && elem . nodeType === 1 ) || ! ! elem . nodeName && elem . nodeName . toLowerCase ( ) === match ;
4697
4697
} ,
4698
-
4698
+
4699
4699
CLASS : function ( elem , match ) {
4700
4700
return ( " " + ( elem . className || elem . getAttribute ( "class" ) ) + " " )
4701
4701
. indexOf ( match ) > - 1 ;
@@ -4765,7 +4765,7 @@ var makeArray = function( array, results ) {
4765
4765
results . push . apply ( results , array ) ;
4766
4766
return results ;
4767
4767
}
4768
-
4768
+
4769
4769
return array ;
4770
4770
} ;
4771
4771
@@ -4997,7 +4997,7 @@ if ( document.querySelectorAll ) {
4997
4997
if ( div . querySelectorAll && div . querySelectorAll ( ".TEST" ) . length === 0 ) {
4998
4998
return ;
4999
4999
}
5000
-
5000
+
5001
5001
Sizzle = function ( query , context , extra , seed ) {
5002
5002
context = context || document ;
5003
5003
@@ -5006,24 +5006,24 @@ if ( document.querySelectorAll ) {
5006
5006
if ( ! seed && ! Sizzle . isXML ( context ) ) {
5007
5007
// See if we find a selector to speed up
5008
5008
var match = / ^ ( \w + $ ) | ^ \. ( [ \w \- ] + $ ) | ^ # ( [ \w \- ] + $ ) / . exec ( query ) ;
5009
-
5009
+
5010
5010
if ( match && ( context . nodeType === 1 || context . nodeType === 9 ) ) {
5011
5011
// Speed-up: Sizzle("TAG")
5012
5012
if ( match [ 1 ] ) {
5013
5013
return makeArray ( context . getElementsByTagName ( query ) , extra ) ;
5014
-
5014
+
5015
5015
// Speed-up: Sizzle(".CLASS")
5016
5016
} else if ( match [ 2 ] && Expr . find . CLASS && context . getElementsByClassName ) {
5017
5017
return makeArray ( context . getElementsByClassName ( match [ 2 ] ) , extra ) ;
5018
5018
}
5019
5019
}
5020
-
5020
+
5021
5021
if ( context . nodeType === 9 ) {
5022
5022
// Speed-up: Sizzle("body")
5023
5023
// The body element only exists once, optimize finding it
5024
5024
if ( query === "body" && context . body ) {
5025
5025
return makeArray ( [ context . body ] , extra ) ;
5026
-
5026
+
5027
5027
// Speed-up: Sizzle("#ID")
5028
5028
} else if ( match && match [ 3 ] ) {
5029
5029
var elem = context . getElementById ( match [ 3 ] ) ;
@@ -5036,12 +5036,12 @@ if ( document.querySelectorAll ) {
5036
5036
if ( elem . id === match [ 3 ] ) {
5037
5037
return makeArray ( [ elem ] , extra ) ;
5038
5038
}
5039
-
5039
+
5040
5040
} else {
5041
5041
return makeArray ( [ ] , extra ) ;
5042
5042
}
5043
5043
}
5044
-
5044
+
5045
5045
try {
5046
5046
return makeArray ( context . querySelectorAll ( query ) , extra ) ;
5047
5047
} catch ( qsaError ) { }
@@ -5079,7 +5079,7 @@ if ( document.querySelectorAll ) {
5079
5079
}
5080
5080
}
5081
5081
}
5082
-
5082
+
5083
5083
return oldSizzle ( query , context , extra , seed ) ;
5084
5084
} ;
5085
5085
@@ -5106,7 +5106,7 @@ if ( document.querySelectorAll ) {
5106
5106
// This should fail with an exception
5107
5107
// Gecko does not error, returns false instead
5108
5108
matches . call ( document . documentElement , "[test!='']:sizzle" ) ;
5109
-
5109
+
5110
5110
} catch ( pseudoError ) {
5111
5111
pseudoWorks = true ;
5112
5112
}
@@ -5116,7 +5116,7 @@ if ( document.querySelectorAll ) {
5116
5116
expr = expr . replace ( / \= \s * ( [ ^ ' " \] ] * ) \s * \] / g, "='$1']" ) ;
5117
5117
5118
5118
if ( ! Sizzle . isXML ( node ) ) {
5119
- try {
5119
+ try {
5120
5120
if ( pseudoWorks || ! Expr . match . PSEUDO . test ( expr ) && ! / ! = / . test ( expr ) ) {
5121
5121
var ret = matches . call ( node , expr ) ;
5122
5122
@@ -5153,7 +5153,7 @@ if ( document.querySelectorAll ) {
5153
5153
if ( div . getElementsByClassName ( "e" ) . length === 1 ) {
5154
5154
return ;
5155
5155
}
5156
-
5156
+
5157
5157
Expr . order . splice ( 1 , 0 , "CLASS" ) ;
5158
5158
Expr . find . CLASS = function ( match , context , isXML ) {
5159
5159
if ( typeof context . getElementsByClassName !== "undefined" && ! isXML ) {
@@ -5204,7 +5204,7 @@ function dirCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
5204
5204
5205
5205
if ( elem ) {
5206
5206
var match = false ;
5207
-
5207
+
5208
5208
elem = elem [ dir ] ;
5209
5209
5210
5210
while ( elem ) {
@@ -5257,7 +5257,7 @@ if ( document.documentElement.contains ) {
5257
5257
5258
5258
Sizzle . isXML = function ( elem ) {
5259
5259
// documentElement is verified for cases where it doesn't yet exist
5260
- // (such as loading iframes in IE - #4833)
5260
+ // (such as loading iframes in IE - #4833)
5261
5261
var documentElement = ( elem ? elem . ownerDocument || elem : 0 ) . documentElement ;
5262
5262
5263
5263
return documentElement ? documentElement . nodeName !== "HTML" : false ;
@@ -5374,19 +5374,19 @@ jQuery.fn.extend({
5374
5374
} ,
5375
5375
5376
5376
is : function ( selector ) {
5377
- return ! ! selector && (
5377
+ return ! ! selector && (
5378
5378
typeof selector === "string" ?
5379
5379
// If this is a positional selector, check membership in the returned set
5380
5380
// so $("p:first").is("p:last") won't return true for a doc with two "p".
5381
- POS . test ( selector ) ?
5381
+ POS . test ( selector ) ?
5382
5382
jQuery ( selector , this . context ) . index ( this [ 0 ] ) >= 0 :
5383
5383
jQuery . filter ( selector , this ) . length > 0 :
5384
5384
this . filter ( selector ) . length > 0 ) ;
5385
5385
} ,
5386
5386
5387
5387
closest : function ( selectors , context ) {
5388
5388
var ret = [ ] , i , l , cur = this [ 0 ] ;
5389
-
5389
+
5390
5390
// Array (deprecated as of jQuery 1.7)
5391
5391
if ( jQuery . isArray ( selectors ) ) {
5392
5392
var level = 1 ;
0 commit comments