11/*!
2- * jQuery JavaScript Library v1.12.1
2+ * jQuery JavaScript Library v1.12.4
33 * http://jquery.com/
44 *
55 * Includes Sizzle.js
99 * Released under the MIT license
1010 * http://jquery.org/license
1111 *
12- * Date: 2016-02-22T19:07Z
12+ * Date: 2016-05-20T17:17Z
1313 */
1414
1515( function ( global , factory ) {
@@ -65,7 +65,7 @@ var support = {};
6565
6666
6767var
68- version = "1.12.1 " ,
68+ version = "1.12.4 " ,
6969
7070 // Define a local copy of jQuery
7171 jQuery = function ( selector , context ) {
@@ -6672,6 +6672,7 @@ var documentElement = document.documentElement;
66726672 if ( reliableHiddenOffsetsVal ) {
66736673 div . style . display = "" ;
66746674 div . innerHTML = "<table><tr><td></td><td>t</td></tr></table>" ;
6675+ div . childNodes [ 0 ] . style . borderCollapse = "separate" ;
66756676 contents = div . getElementsByTagName ( "td" ) ;
66766677 contents [ 0 ] . style . cssText = "margin:0;border:0;padding:0;display:none" ;
66776678 reliableHiddenOffsetsVal = contents [ 0 ] . offsetHeight === 0 ;
@@ -6996,19 +6997,6 @@ function getWidthOrHeight( elem, name, extra ) {
69966997 isBorderBox = support . boxSizing &&
69976998 jQuery . css ( elem , "boxSizing" , false , styles ) === "border-box" ;
69986999
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-
70127000 // some non-html elements return undefined for offsetWidth, so check for null/undefined
70137001 // svg - https://bugzilla.mozilla.org/show_bug.cgi?id=649285
70147002 // MathML - https://bugzilla.mozilla.org/show_bug.cgi?id=491668
@@ -8198,7 +8186,8 @@ jQuery.fn.delay = function( time, type ) {
81988186} ) ( ) ;
81998187
82008188
8201- var rreturn = / \r / g;
8189+ var rreturn = / \r / g,
8190+ rspaces = / [ \x20 \t \r \n \f ] + / g;
82028191
82038192jQuery . fn . extend ( {
82048193 val : function ( value ) {
@@ -8278,7 +8267,9 @@ jQuery.extend( {
82788267
82798268 // Support: IE10-11+
82808269 // 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 , " " ) ;
82828273 }
82838274 } ,
82848275 select : {
@@ -8332,7 +8323,7 @@ jQuery.extend( {
83328323 while ( i -- ) {
83338324 option = options [ i ] ;
83348325
8335- if ( jQuery . inArray ( jQuery . valHooks . option . get ( option ) , values ) >= 0 ) {
8326+ if ( jQuery . inArray ( jQuery . valHooks . option . get ( option ) , values ) > - 1 ) {
83368327
83378328 // Support: IE6
83388329 // When new option element is added to select box we need to
@@ -8751,8 +8742,11 @@ if ( !support.hrefNormalized ) {
87518742}
87528743
87538744// 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
87568750if ( ! support . optSelected ) {
87578751 jQuery . propHooks . selected = {
87588752 get : function ( elem ) {
@@ -8767,6 +8761,16 @@ if ( !support.optSelected ) {
87678761 }
87688762 }
87698763 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+ }
87708774 }
87718775 } ;
87728776}
@@ -9983,6 +9987,11 @@ function getDisplay( elem ) {
99839987}
99849988
99859989function filterHidden ( elem ) {
9990+
9991+ // Disconnected elements are considered hidden
9992+ if ( ! jQuery . contains ( elem . ownerDocument || document , elem ) ) {
9993+ return true ;
9994+ }
99869995 while ( elem && elem . nodeType === 1 ) {
99879996 if ( getDisplay ( elem ) === "none" || elem . type === "hidden" ) {
99889997 return true ;
@@ -10349,13 +10358,6 @@ function createActiveXHR() {
1034910358
1035010359
1035110360
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-
1035910361// Install script dataType
1036010362jQuery . ajaxSetup ( {
1036110363 accepts : {
@@ -10542,21 +10544,6 @@ jQuery.ajaxPrefilter( "json jsonp", function( s, originalSettings, jqXHR ) {
1054210544
1054310545
1054410546
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-
1056010547// data: string of html
1056110548// context (optional): If specified, the fragment will be created in this context,
1056210549// defaults to document
@@ -10569,12 +10556,7 @@ jQuery.parseHTML = function( data, context, keepScripts ) {
1056910556 keepScripts = context ;
1057010557 context = false ;
1057110558 }
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 ;
1057810560
1057910561 var parsed = rsingleTag . exec ( data ) ,
1058010562 scripts = ! keepScripts && [ ] ;
@@ -10656,7 +10638,7 @@ jQuery.fn.load = function( url, params, callback ) {
1065610638 // If it fails, this function gets "jqXHR", "status", "error"
1065710639 } ) . always ( callback && function ( jqXHR , status ) {
1065810640 self . each ( function ( ) {
10659- callback . apply ( self , response || [ jqXHR . responseText , status , jqXHR ] ) ;
10641+ callback . apply ( this , response || [ jqXHR . responseText , status , jqXHR ] ) ;
1066010642 } ) ;
1066110643 } ) ;
1066210644 }
0 commit comments