1+ /*eslint-disable no-unused-vars*/
12/*!
2- * jQuery JavaScript Library v3.0 .0
3+ * jQuery JavaScript Library v3.1 .0
34 * https://jquery.com/
45 *
56 * Includes Sizzle.js
910 * Released under the MIT license
1011 * https://jquery.org/license
1112 *
12- * Date: 2016-06-09T18:02Z
13+ * Date: 2016-07-07T21:44Z
1314 */
1415( function ( global , factory ) {
1516
3738 }
3839
3940// Pass this if window is not defined yet
40- } ( typeof window !== "undefined" ? window : this , function ( window , noGlobal ) {
41+ } ) ( typeof window !== "undefined" ? window : this , function ( window , noGlobal ) {
4142
4243// Edge <= 12 - 13+, Firefox <=18 - 45+, IE 10 - 11, Safari 5.1 - 9+, iOS 6 - 9.1
4344// throw exceptions when non-strict code (e.g., ASP.NET 4.5) accesses strict mode
@@ -81,10 +82,14 @@ var support = {};
8182 script . text = code ;
8283 doc . head . appendChild ( script ) . parentNode . removeChild ( script ) ;
8384 }
85+ /* global Symbol */
86+ // Defining this global in .eslintrc would create a danger of using the global
87+ // unguarded in another place, it seems safer to define global only for this module
88+
8489
8590
8691var
87- version = "3.0 .0" ,
92+ version = "3.1 .0" ,
8893
8994 // Define a local copy of jQuery
9095 jQuery = function ( selector , context ) {
@@ -316,7 +321,11 @@ jQuery.extend( {
316321 } ,
317322
318323 isEmptyObject : function ( obj ) {
324+
325+ /* eslint-disable no-unused-vars */
326+ // See https://github.com/eslint/eslint/issues/6125
319327 var name ;
328+
320329 for ( name in obj ) {
321330 return false ;
322331 }
@@ -506,15 +515,9 @@ jQuery.extend( {
506515 support : support
507516} ) ;
508517
509- // JSHint would error on this code due to the Symbol not being defined in ES5.
510- // Defining this global in .jshintrc would create a danger of using the global
511- // unguarded in another place, it seems safer to just disable JSHint for these
512- // three lines.
513- /* jshint ignore: start */
514518if ( typeof Symbol === "function" ) {
515519 jQuery . fn [ Symbol . iterator ] = arr [ Symbol . iterator ] ;
516520}
517- /* jshint ignore: end */
518521
519522// Populate the class2type map
520523jQuery . each ( "Boolean Number String Function Array Date RegExp Object Error Symbol" . split ( " " ) ,
@@ -2753,6 +2756,7 @@ jQuery.escapeSelector = Sizzle.escape;
27532756
27542757
27552758
2759+
27562760var dir = function ( elem , dir , until ) {
27572761 var matched = [ ] ,
27582762 truncate = until !== undefined ;
@@ -2794,7 +2798,6 @@ var risSimple = /^.[^:#\[\.,]*$/;
27942798function winnow ( elements , qualifier , not ) {
27952799 if ( jQuery . isFunction ( qualifier ) ) {
27962800 return jQuery . grep ( elements , function ( elem , i ) {
2797- /* jshint -W018 */
27982801 return ! ! qualifier . call ( elem , i , elem ) !== not ;
27992802 } ) ;
28002803
@@ -3420,7 +3423,7 @@ function adoptValue( value, resolve, reject ) {
34203423 // For Promises/A+, convert exceptions into rejections
34213424 // Since jQuery.when doesn't unwrap thenables, we can skip the extra checks appearing in
34223425 // Deferred#then to conditionally suppress rejection.
3423- } catch ( /*jshint -W002 */ value ) {
3426+ } catch ( value ) {
34243427
34253428 // Support: Android 4.0 only
34263429 // Strict mode functions invoked without .call/.apply get global-object context
@@ -3785,12 +3788,29 @@ jQuery.Deferred.exceptionHook = function( error, stack ) {
37853788
37863789
37873790
3791+ jQuery . readyException = function ( error ) {
3792+ window . setTimeout ( function ( ) {
3793+ throw error ;
3794+ } ) ;
3795+ } ;
3796+
3797+
3798+
3799+
37883800// The deferred used on DOM ready
37893801var readyList = jQuery . Deferred ( ) ;
37903802
37913803jQuery . fn . ready = function ( fn ) {
37923804
3793- readyList . then ( fn ) ;
3805+ readyList
3806+ . then ( fn )
3807+
3808+ // Wrap jQuery.readyException in a function so that the lookup
3809+ // happens at the time of error handling instead of callback
3810+ // registration.
3811+ . catch ( function ( error ) {
3812+ jQuery . readyException ( error ) ;
3813+ } ) ;
37943814
37953815 return this ;
37963816} ;
@@ -3930,7 +3950,6 @@ var acceptData = function( owner ) {
39303950 // - Node.DOCUMENT_NODE
39313951 // - Object
39323952 // - Any
3933- /* jshint -W018 */
39343953 return owner . nodeType === 1 || owner . nodeType === 9 || ! ( + owner . nodeType ) ;
39353954} ;
39363955
@@ -4431,8 +4450,12 @@ function adjustCSS( elem, prop, valueParts, tween ) {
44314450 scale = 1 ,
44324451 maxIterations = 20 ,
44334452 currentValue = tween ?
4434- function ( ) { return tween . cur ( ) ; } :
4435- function ( ) { return jQuery . css ( elem , prop , "" ) ; } ,
4453+ function ( ) {
4454+ return tween . cur ( ) ;
4455+ } :
4456+ function ( ) {
4457+ return jQuery . css ( elem , prop , "" ) ;
4458+ } ,
44364459 initial = currentValue ( ) ,
44374460 unit = valueParts && valueParts [ 3 ] || ( jQuery . cssNumber [ prop ] ? "" : "px" ) ,
44384461
@@ -5474,8 +5497,14 @@ jQuery.fn.extend( {
54745497
54755498
54765499var
5500+
5501+ /* eslint-disable max-len */
5502+
5503+ // See https://github.com/eslint/eslint/issues/3229
54775504 rxhtmlTag = / < (? ! a r e a | b r | c o l | e m b e d | h r | i m g | i n p u t | l i n k | m e t a | p a r a m ) ( ( [ a - z ] [ ^ \/ \0 > \x20 \t \r \n \f ] * ) [ ^ > ] * ) \/ > / gi,
54785505
5506+ /* eslint-enable */
5507+
54795508 // Support: IE <=10 - 11, Edge 12 - 13
54805509 // In IE/Edge using regex groups here causes severe slowdowns.
54815510 // See https://connect.microsoft.com/IE/feedback/details/1736512/
@@ -6631,7 +6660,7 @@ function genFx( type, includeWidth ) {
66316660 // If we include width, step value is 1 to do all cssExpand values,
66326661 // otherwise step value is 2 to skip over Left and Right
66336662 includeWidth = includeWidth ? 1 : 0 ;
6634- for ( ; i < 4 ; i += 2 - includeWidth ) {
6663+ for ( ; i < 4 ; i += 2 - includeWidth ) {
66356664 which = cssExpand [ i ] ;
66366665 attrs [ "margin" + which ] = attrs [ "padding" + which ] = type ;
66376666 }
@@ -6658,7 +6687,6 @@ function createTween( value, prop, animation ) {
66586687}
66596688
66606689function defaultPrefilter ( elem , props , opts ) {
6661- /* jshint validthis: true */
66626690 var prop , value , toggle , hooks , oldfire , propTween , restoreDisplay , display ,
66636691 isBox = "width" in props || "height" in props ,
66646692 anim = this ,
@@ -6800,9 +6828,12 @@ function defaultPrefilter( elem, props, opts ) {
68006828 showHide ( [ elem ] , true ) ;
68016829 }
68026830
6803- /* jshint -W083 */
6831+ /* eslint-disable no-loop-func */
6832+
68046833 anim . done ( function ( ) {
68056834
6835+ /* eslint-enable no-loop-func */
6836+
68066837 // The final step of a "hide" animation is actually hiding the element
68076838 if ( ! hidden ) {
68086839 showHide ( [ elem ] ) ;
@@ -6887,7 +6918,7 @@ function Animation( elem, properties, options ) {
68876918 index = 0 ,
68886919 length = animation . tweens . length ;
68896920
6890- for ( ; index < length ; index ++ ) {
6921+ for ( ; index < length ; index ++ ) {
68916922 animation . tweens [ index ] . run ( percent ) ;
68926923 }
68936924
@@ -6928,7 +6959,7 @@ function Animation( elem, properties, options ) {
69286959 return this ;
69296960 }
69306961 stopped = true ;
6931- for ( ; index < length ; index ++ ) {
6962+ for ( ; index < length ; index ++ ) {
69326963 animation . tweens [ index ] . run ( 1 ) ;
69336964 }
69346965
@@ -6946,7 +6977,7 @@ function Animation( elem, properties, options ) {
69466977
69476978 propFilter ( props , animation . opts . specialEasing ) ;
69486979
6949- for ( ; index < length ; index ++ ) {
6980+ for ( ; index < length ; index ++ ) {
69506981 result = Animation . prefilters [ index ] . call ( animation , elem , props , animation . opts ) ;
69516982 if ( result ) {
69526983 if ( jQuery . isFunction ( result . stop ) ) {
@@ -7000,7 +7031,7 @@ jQuery.Animation = jQuery.extend( Animation, {
70007031 index = 0 ,
70017032 length = props . length ;
70027033
7003- for ( ; index < length ; index ++ ) {
7034+ for ( ; index < length ; index ++ ) {
70047035 prop = props [ index ] ;
70057036 Animation . tweeners [ prop ] = Animation . tweeners [ prop ] || [ ] ;
70067037 Animation . tweeners [ prop ] . unshift ( callback ) ;
@@ -7861,11 +7892,16 @@ jQuery.extend( {
78617892
78627893 while ( i -- ) {
78637894 option = options [ i ] ;
7895+
7896+ /* eslint-disable no-cond-assign */
7897+
78647898 if ( option . selected =
78657899 jQuery . inArray ( jQuery . valHooks . option . get ( option ) , values ) > - 1
78667900 ) {
78677901 optionSet = true ;
78687902 }
7903+
7904+ /* eslint-enable no-cond-assign */
78697905 }
78707906
78717907 // Force browsers to behave consistently when non-matching value is set
@@ -8574,6 +8610,7 @@ jQuery.extend( {
85748610 processData : true ,
85758611 async : true ,
85768612 contentType : "application/x-www-form-urlencoded; charset=UTF-8" ,
8613+
85778614 /*
85788615 timeout: 0,
85798616 data: null,
@@ -10034,4 +10071,4 @@ if ( !noGlobal ) {
1003410071
1003510072
1003610073return jQuery ;
10037- } ) ) ;
10074+ } ) ;
0 commit comments