1
1
/*!
2
- * jQuery JavaScript Library v1.12.1
2
+ * jQuery JavaScript Library v1.12.4
3
3
* http://jquery.com/
4
4
*
5
5
* Includes Sizzle.js
9
9
* Released under the MIT license
10
10
* http://jquery.org/license
11
11
*
12
- * Date: 2016-02-22T19:07Z
12
+ * Date: 2016-05-20T17:17Z
13
13
*/
14
14
15
15
( function ( global , factory ) {
@@ -65,7 +65,7 @@ var support = {};
65
65
66
66
67
67
var
68
- version = "1.12.1 " ,
68
+ version = "1.12.4 " ,
69
69
70
70
// Define a local copy of jQuery
71
71
jQuery = function ( selector , context ) {
@@ -6672,6 +6672,7 @@ var documentElement = document.documentElement;
6672
6672
if ( reliableHiddenOffsetsVal ) {
6673
6673
div . style . display = "" ;
6674
6674
div . innerHTML = "<table><tr><td></td><td>t</td></tr></table>" ;
6675
+ div . childNodes [ 0 ] . style . borderCollapse = "separate" ;
6675
6676
contents = div . getElementsByTagName ( "td" ) ;
6676
6677
contents [ 0 ] . style . cssText = "margin:0;border:0;padding:0;display:none" ;
6677
6678
reliableHiddenOffsetsVal = contents [ 0 ] . offsetHeight === 0 ;
@@ -6996,19 +6997,6 @@ function getWidthOrHeight( elem, name, extra ) {
6996
6997
isBorderBox = support . boxSizing &&
6997
6998
jQuery . css ( elem , "boxSizing" , false , styles ) === "border-box" ;
6998
6999
6999
- // Support: IE11 only
7000
- // In IE 11 fullscreen elements inside of an iframe have
7001
- // 100x too small dimensions (gh-1764).
7002
- if ( document . msFullscreenElement && window . top !== window ) {
7003
-
7004
- // Support: IE11 only
7005
- // Running getBoundingClientRect on a disconnected node
7006
- // in IE throws an error.
7007
- if ( elem . getClientRects ( ) . length ) {
7008
- val = Math . round ( elem . getBoundingClientRect ( ) [ name ] * 100 ) ;
7009
- }
7010
- }
7011
-
7012
7000
// some non-html elements return undefined for offsetWidth, so check for null/undefined
7013
7001
// svg - https://bugzilla.mozilla.org/show_bug.cgi?id=649285
7014
7002
// MathML - https://bugzilla.mozilla.org/show_bug.cgi?id=491668
@@ -8198,7 +8186,8 @@ jQuery.fn.delay = function( time, type ) {
8198
8186
} ) ( ) ;
8199
8187
8200
8188
8201
- var rreturn = / \r / g;
8189
+ var rreturn = / \r / g,
8190
+ rspaces = / [ \x20 \t \r \n \f ] + / g;
8202
8191
8203
8192
jQuery . fn . extend ( {
8204
8193
val : function ( value ) {
@@ -8278,7 +8267,9 @@ jQuery.extend( {
8278
8267
8279
8268
// Support: IE10-11+
8280
8269
// option.text throws exceptions (#14686, #14858)
8281
- jQuery . trim ( jQuery . text ( elem ) ) ;
8270
+ // Strip and collapse whitespace
8271
+ // https://html.spec.whatwg.org/#strip-and-collapse-whitespace
8272
+ jQuery . trim ( jQuery . text ( elem ) ) . replace ( rspaces , " " ) ;
8282
8273
}
8283
8274
} ,
8284
8275
select : {
@@ -8332,7 +8323,7 @@ jQuery.extend( {
8332
8323
while ( i -- ) {
8333
8324
option = options [ i ] ;
8334
8325
8335
- if ( jQuery . inArray ( jQuery . valHooks . option . get ( option ) , values ) >= 0 ) {
8326
+ if ( jQuery . inArray ( jQuery . valHooks . option . get ( option ) , values ) > - 1 ) {
8336
8327
8337
8328
// Support: IE6
8338
8329
// When new option element is added to select box we need to
@@ -8751,8 +8742,11 @@ if ( !support.hrefNormalized ) {
8751
8742
}
8752
8743
8753
8744
// Support: Safari, IE9+
8754
- // mis-reports the default selected property of an option
8755
- // Accessing the parent's selectedIndex property fixes it
8745
+ // Accessing the selectedIndex property
8746
+ // forces the browser to respect setting selected
8747
+ // on the option
8748
+ // The getter ensures a default option is selected
8749
+ // when in an optgroup
8756
8750
if ( ! support . optSelected ) {
8757
8751
jQuery . propHooks . selected = {
8758
8752
get : function ( elem ) {
@@ -8767,6 +8761,16 @@ if ( !support.optSelected ) {
8767
8761
}
8768
8762
}
8769
8763
return null ;
8764
+ } ,
8765
+ set : function ( elem ) {
8766
+ var parent = elem . parentNode ;
8767
+ if ( parent ) {
8768
+ parent . selectedIndex ;
8769
+
8770
+ if ( parent . parentNode ) {
8771
+ parent . parentNode . selectedIndex ;
8772
+ }
8773
+ }
8770
8774
}
8771
8775
} ;
8772
8776
}
@@ -9983,6 +9987,11 @@ function getDisplay( elem ) {
9983
9987
}
9984
9988
9985
9989
function filterHidden ( elem ) {
9990
+
9991
+ // Disconnected elements are considered hidden
9992
+ if ( ! jQuery . contains ( elem . ownerDocument || document , elem ) ) {
9993
+ return true ;
9994
+ }
9986
9995
while ( elem && elem . nodeType === 1 ) {
9987
9996
if ( getDisplay ( elem ) === "none" || elem . type === "hidden" ) {
9988
9997
return true ;
@@ -10349,13 +10358,6 @@ function createActiveXHR() {
10349
10358
10350
10359
10351
10360
10352
- // Prevent auto-execution of scripts when no explicit dataType was provided (See gh-2432)
10353
- jQuery . ajaxPrefilter ( function ( s ) {
10354
- if ( s . crossDomain ) {
10355
- s . contents . script = false ;
10356
- }
10357
- } ) ;
10358
-
10359
10361
// Install script dataType
10360
10362
jQuery . ajaxSetup ( {
10361
10363
accepts : {
@@ -10542,21 +10544,6 @@ jQuery.ajaxPrefilter( "json jsonp", function( s, originalSettings, jqXHR ) {
10542
10544
10543
10545
10544
10546
10545
- // Support: Safari 8+
10546
- // In Safari 8 documents created via document.implementation.createHTMLDocument
10547
- // collapse sibling forms: the second one becomes a child of the first one.
10548
- // Because of that, this security measure has to be disabled in Safari 8.
10549
- // https://bugs.webkit.org/show_bug.cgi?id=137337
10550
- support . createHTMLDocument = ( function ( ) {
10551
- if ( ! document . implementation . createHTMLDocument ) {
10552
- return false ;
10553
- }
10554
- var doc = document . implementation . createHTMLDocument ( "" ) ;
10555
- doc . body . innerHTML = "<form></form><form></form>" ;
10556
- return doc . body . childNodes . length === 2 ;
10557
- } ) ( ) ;
10558
-
10559
-
10560
10547
// data: string of html
10561
10548
// context (optional): If specified, the fragment will be created in this context,
10562
10549
// defaults to document
@@ -10569,12 +10556,7 @@ jQuery.parseHTML = function( data, context, keepScripts ) {
10569
10556
keepScripts = context ;
10570
10557
context = false ;
10571
10558
}
10572
-
10573
- // document.implementation stops scripts or inline event handlers from
10574
- // being executed immediately
10575
- context = context || ( support . createHTMLDocument ?
10576
- document . implementation . createHTMLDocument ( "" ) :
10577
- document ) ;
10559
+ context = context || document ;
10578
10560
10579
10561
var parsed = rsingleTag . exec ( data ) ,
10580
10562
scripts = ! keepScripts && [ ] ;
@@ -10656,7 +10638,7 @@ jQuery.fn.load = function( url, params, callback ) {
10656
10638
// If it fails, this function gets "jqXHR", "status", "error"
10657
10639
} ) . always ( callback && function ( jqXHR , status ) {
10658
10640
self . each ( function ( ) {
10659
- callback . apply ( self , response || [ jqXHR . responseText , status , jqXHR ] ) ;
10641
+ callback . apply ( this , response || [ jqXHR . responseText , status , jqXHR ] ) ;
10660
10642
} ) ;
10661
10643
} ) ;
10662
10644
}
0 commit comments