Release 3.1.0

parent 0078f86b
/* global Symbol */
// Defining this global in .eslintrc would create a danger of using the global
// unguarded in another place, it seems safer to define global only for this module
define( [ define( [
"./var/arr", "./var/arr",
"./var/document", "./var/document",
...@@ -20,7 +24,7 @@ define( [ ...@@ -20,7 +24,7 @@ define( [
"use strict"; "use strict";
var var
version = "3.0.0", version = "3.1.0",
// Define a local copy of jQuery // Define a local copy of jQuery
jQuery = function( selector, context ) { jQuery = function( selector, context ) {
...@@ -252,7 +256,11 @@ jQuery.extend( { ...@@ -252,7 +256,11 @@ jQuery.extend( {
}, },
isEmptyObject: function( obj ) { isEmptyObject: function( obj ) {
/* eslint-disable no-unused-vars */
// See https://github.com/eslint/eslint/issues/6125
var name; var name;
for ( name in obj ) { for ( name in obj ) {
return false; return false;
} }
...@@ -442,15 +450,9 @@ jQuery.extend( { ...@@ -442,15 +450,9 @@ jQuery.extend( {
support: support support: support
} ); } );
// JSHint would error on this code due to the Symbol not being defined in ES5.
// Defining this global in .jshintrc would create a danger of using the global
// unguarded in another place, it seems safer to just disable JSHint for these
// three lines.
/* jshint ignore: start */
if ( typeof Symbol === "function" ) { if ( typeof Symbol === "function" ) {
jQuery.fn[ Symbol.iterator ] = arr[ Symbol.iterator ]; jQuery.fn[ Symbol.iterator ] = arr[ Symbol.iterator ];
} }
/* jshint ignore: end */
// Populate the class2type map // Populate the class2type map
jQuery.each( "Boolean Number String Function Array Date RegExp Object Error Symbol".split( " " ), jQuery.each( "Boolean Number String Function Array Date RegExp Object Error Symbol".split( " " ),
......
/*eslint-disable no-unused-vars*/
/*! /*!
* jQuery JavaScript Library v3.0.0 * jQuery JavaScript Library v3.1.0
* https://jquery.com/ * https://jquery.com/
* *
* Includes Sizzle.js * Includes Sizzle.js
...@@ -9,7 +10,7 @@ ...@@ -9,7 +10,7 @@
* Released under the MIT license * Released under the MIT license
* https://jquery.org/license * https://jquery.org/license
* *
* Date: 2016-06-09T18:02Z * Date: 2016-07-07T21:44Z
*/ */
( function( global, factory ) { ( function( global, factory ) {
...@@ -37,7 +38,7 @@ ...@@ -37,7 +38,7 @@
} }
// Pass this if window is not defined yet // Pass this if window is not defined yet
}( typeof window !== "undefined" ? window : this, function( window, noGlobal ) { } )( typeof window !== "undefined" ? window : this, function( window, noGlobal ) {
// Edge <= 12 - 13+, Firefox <=18 - 45+, IE 10 - 11, Safari 5.1 - 9+, iOS 6 - 9.1 // Edge <= 12 - 13+, Firefox <=18 - 45+, IE 10 - 11, Safari 5.1 - 9+, iOS 6 - 9.1
// throw exceptions when non-strict code (e.g., ASP.NET 4.5) accesses strict mode // throw exceptions when non-strict code (e.g., ASP.NET 4.5) accesses strict mode
...@@ -81,10 +82,14 @@ var support = {}; ...@@ -81,10 +82,14 @@ var support = {};
script.text = code; script.text = code;
doc.head.appendChild( script ).parentNode.removeChild( script ); doc.head.appendChild( script ).parentNode.removeChild( script );
} }
/* global Symbol */
// Defining this global in .eslintrc would create a danger of using the global
// unguarded in another place, it seems safer to define global only for this module
var var
version = "3.0.0", version = "3.1.0",
// Define a local copy of jQuery // Define a local copy of jQuery
jQuery = function( selector, context ) { jQuery = function( selector, context ) {
...@@ -316,7 +321,11 @@ jQuery.extend( { ...@@ -316,7 +321,11 @@ jQuery.extend( {
}, },
isEmptyObject: function( obj ) { isEmptyObject: function( obj ) {
/* eslint-disable no-unused-vars */
// See https://github.com/eslint/eslint/issues/6125
var name; var name;
for ( name in obj ) { for ( name in obj ) {
return false; return false;
} }
...@@ -506,15 +515,9 @@ jQuery.extend( { ...@@ -506,15 +515,9 @@ jQuery.extend( {
support: support support: support
} ); } );
// JSHint would error on this code due to the Symbol not being defined in ES5.
// Defining this global in .jshintrc would create a danger of using the global
// unguarded in another place, it seems safer to just disable JSHint for these
// three lines.
/* jshint ignore: start */
if ( typeof Symbol === "function" ) { if ( typeof Symbol === "function" ) {
jQuery.fn[ Symbol.iterator ] = arr[ Symbol.iterator ]; jQuery.fn[ Symbol.iterator ] = arr[ Symbol.iterator ];
} }
/* jshint ignore: end */
// Populate the class2type map // Populate the class2type map
jQuery.each( "Boolean Number String Function Array Date RegExp Object Error Symbol".split( " " ), jQuery.each( "Boolean Number String Function Array Date RegExp Object Error Symbol".split( " " ),
...@@ -2753,6 +2756,7 @@ jQuery.escapeSelector = Sizzle.escape; ...@@ -2753,6 +2756,7 @@ jQuery.escapeSelector = Sizzle.escape;
var dir = function( elem, dir, until ) { var dir = function( elem, dir, until ) {
var matched = [], var matched = [],
truncate = until !== undefined; truncate = until !== undefined;
...@@ -2794,7 +2798,6 @@ var risSimple = /^.[^:#\[\.,]*$/; ...@@ -2794,7 +2798,6 @@ var risSimple = /^.[^:#\[\.,]*$/;
function winnow( elements, qualifier, not ) { function winnow( elements, qualifier, not ) {
if ( jQuery.isFunction( qualifier ) ) { if ( jQuery.isFunction( qualifier ) ) {
return jQuery.grep( elements, function( elem, i ) { return jQuery.grep( elements, function( elem, i ) {
/* jshint -W018 */
return !!qualifier.call( elem, i, elem ) !== not; return !!qualifier.call( elem, i, elem ) !== not;
} ); } );
...@@ -3420,7 +3423,7 @@ function adoptValue( value, resolve, reject ) { ...@@ -3420,7 +3423,7 @@ function adoptValue( value, resolve, reject ) {
// For Promises/A+, convert exceptions into rejections // For Promises/A+, convert exceptions into rejections
// Since jQuery.when doesn't unwrap thenables, we can skip the extra checks appearing in // Since jQuery.when doesn't unwrap thenables, we can skip the extra checks appearing in
// Deferred#then to conditionally suppress rejection. // Deferred#then to conditionally suppress rejection.
} catch ( /*jshint -W002 */ value ) { } catch ( value ) {
// Support: Android 4.0 only // Support: Android 4.0 only
// Strict mode functions invoked without .call/.apply get global-object context // Strict mode functions invoked without .call/.apply get global-object context
...@@ -3785,12 +3788,29 @@ jQuery.Deferred.exceptionHook = function( error, stack ) { ...@@ -3785,12 +3788,29 @@ jQuery.Deferred.exceptionHook = function( error, stack ) {
jQuery.readyException = function( error ) {
window.setTimeout( function() {
throw error;
} );
};
// The deferred used on DOM ready // The deferred used on DOM ready
var readyList = jQuery.Deferred(); var readyList = jQuery.Deferred();
jQuery.fn.ready = function( fn ) { jQuery.fn.ready = function( fn ) {
readyList.then( fn ); readyList
.then( fn )
// Wrap jQuery.readyException in a function so that the lookup
// happens at the time of error handling instead of callback
// registration.
.catch( function( error ) {
jQuery.readyException( error );
} );
return this; return this;
}; };
...@@ -3930,7 +3950,6 @@ var acceptData = function( owner ) { ...@@ -3930,7 +3950,6 @@ var acceptData = function( owner ) {
// - Node.DOCUMENT_NODE // - Node.DOCUMENT_NODE
// - Object // - Object
// - Any // - Any
/* jshint -W018 */
return owner.nodeType === 1 || owner.nodeType === 9 || !( +owner.nodeType ); return owner.nodeType === 1 || owner.nodeType === 9 || !( +owner.nodeType );
}; };
...@@ -4431,8 +4450,12 @@ function adjustCSS( elem, prop, valueParts, tween ) { ...@@ -4431,8 +4450,12 @@ function adjustCSS( elem, prop, valueParts, tween ) {
scale = 1, scale = 1,
maxIterations = 20, maxIterations = 20,
currentValue = tween ? currentValue = tween ?
function() { return tween.cur(); } : function() {
function() { return jQuery.css( elem, prop, "" ); }, return tween.cur();
} :
function() {
return jQuery.css( elem, prop, "" );
},
initial = currentValue(), initial = currentValue(),
unit = valueParts && valueParts[ 3 ] || ( jQuery.cssNumber[ prop ] ? "" : "px" ), unit = valueParts && valueParts[ 3 ] || ( jQuery.cssNumber[ prop ] ? "" : "px" ),
...@@ -5474,8 +5497,14 @@ jQuery.fn.extend( { ...@@ -5474,8 +5497,14 @@ jQuery.fn.extend( {
var var
/* eslint-disable max-len */
// See https://github.com/eslint/eslint/issues/3229
rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi, rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,
/* eslint-enable */
// Support: IE <=10 - 11, Edge 12 - 13 // Support: IE <=10 - 11, Edge 12 - 13
// In IE/Edge using regex groups here causes severe slowdowns. // In IE/Edge using regex groups here causes severe slowdowns.
// See https://connect.microsoft.com/IE/feedback/details/1736512/ // See https://connect.microsoft.com/IE/feedback/details/1736512/
...@@ -6631,7 +6660,7 @@ function genFx( type, includeWidth ) { ...@@ -6631,7 +6660,7 @@ function genFx( type, includeWidth ) {
// If we include width, step value is 1 to do all cssExpand values, // If we include width, step value is 1 to do all cssExpand values,
// otherwise step value is 2 to skip over Left and Right // otherwise step value is 2 to skip over Left and Right
includeWidth = includeWidth ? 1 : 0; includeWidth = includeWidth ? 1 : 0;
for ( ; i < 4 ; i += 2 - includeWidth ) { for ( ; i < 4; i += 2 - includeWidth ) {
which = cssExpand[ i ]; which = cssExpand[ i ];
attrs[ "margin" + which ] = attrs[ "padding" + which ] = type; attrs[ "margin" + which ] = attrs[ "padding" + which ] = type;
} }
...@@ -6658,7 +6687,6 @@ function createTween( value, prop, animation ) { ...@@ -6658,7 +6687,6 @@ function createTween( value, prop, animation ) {
} }
function defaultPrefilter( elem, props, opts ) { function defaultPrefilter( elem, props, opts ) {
/* jshint validthis: true */
var prop, value, toggle, hooks, oldfire, propTween, restoreDisplay, display, var prop, value, toggle, hooks, oldfire, propTween, restoreDisplay, display,
isBox = "width" in props || "height" in props, isBox = "width" in props || "height" in props,
anim = this, anim = this,
...@@ -6800,9 +6828,12 @@ function defaultPrefilter( elem, props, opts ) { ...@@ -6800,9 +6828,12 @@ function defaultPrefilter( elem, props, opts ) {
showHide( [ elem ], true ); showHide( [ elem ], true );
} }
/* jshint -W083 */ /* eslint-disable no-loop-func */
anim.done( function() { anim.done( function() {
/* eslint-enable no-loop-func */
// The final step of a "hide" animation is actually hiding the element // The final step of a "hide" animation is actually hiding the element
if ( !hidden ) { if ( !hidden ) {
showHide( [ elem ] ); showHide( [ elem ] );
...@@ -6887,7 +6918,7 @@ function Animation( elem, properties, options ) { ...@@ -6887,7 +6918,7 @@ function Animation( elem, properties, options ) {
index = 0, index = 0,
length = animation.tweens.length; length = animation.tweens.length;
for ( ; index < length ; index++ ) { for ( ; index < length; index++ ) {
animation.tweens[ index ].run( percent ); animation.tweens[ index ].run( percent );
} }
...@@ -6928,7 +6959,7 @@ function Animation( elem, properties, options ) { ...@@ -6928,7 +6959,7 @@ function Animation( elem, properties, options ) {
return this; return this;
} }
stopped = true; stopped = true;
for ( ; index < length ; index++ ) { for ( ; index < length; index++ ) {
animation.tweens[ index ].run( 1 ); animation.tweens[ index ].run( 1 );
} }
...@@ -6946,7 +6977,7 @@ function Animation( elem, properties, options ) { ...@@ -6946,7 +6977,7 @@ function Animation( elem, properties, options ) {
propFilter( props, animation.opts.specialEasing ); propFilter( props, animation.opts.specialEasing );
for ( ; index < length ; index++ ) { for ( ; index < length; index++ ) {
result = Animation.prefilters[ index ].call( animation, elem, props, animation.opts ); result = Animation.prefilters[ index ].call( animation, elem, props, animation.opts );
if ( result ) { if ( result ) {
if ( jQuery.isFunction( result.stop ) ) { if ( jQuery.isFunction( result.stop ) ) {
...@@ -7000,7 +7031,7 @@ jQuery.Animation = jQuery.extend( Animation, { ...@@ -7000,7 +7031,7 @@ jQuery.Animation = jQuery.extend( Animation, {
index = 0, index = 0,
length = props.length; length = props.length;
for ( ; index < length ; index++ ) { for ( ; index < length; index++ ) {
prop = props[ index ]; prop = props[ index ];
Animation.tweeners[ prop ] = Animation.tweeners[ prop ] || []; Animation.tweeners[ prop ] = Animation.tweeners[ prop ] || [];
Animation.tweeners[ prop ].unshift( callback ); Animation.tweeners[ prop ].unshift( callback );
...@@ -7861,11 +7892,16 @@ jQuery.extend( { ...@@ -7861,11 +7892,16 @@ jQuery.extend( {
while ( i-- ) { while ( i-- ) {
option = options[ i ]; option = options[ i ];
/* eslint-disable no-cond-assign */
if ( option.selected = if ( option.selected =
jQuery.inArray( jQuery.valHooks.option.get( option ), values ) > -1 jQuery.inArray( jQuery.valHooks.option.get( option ), values ) > -1
) { ) {
optionSet = true; optionSet = true;
} }
/* eslint-enable no-cond-assign */
} }
// Force browsers to behave consistently when non-matching value is set // Force browsers to behave consistently when non-matching value is set
...@@ -8574,6 +8610,7 @@ jQuery.extend( { ...@@ -8574,6 +8610,7 @@ jQuery.extend( {
processData: true, processData: true,
async: true, async: true,
contentType: "application/x-www-form-urlencoded; charset=UTF-8", contentType: "application/x-www-form-urlencoded; charset=UTF-8",
/* /*
timeout: 0, timeout: 0,
data: null, data: null,
...@@ -10034,4 +10071,4 @@ if ( !noGlobal ) { ...@@ -10034,4 +10071,4 @@ if ( !noGlobal ) {
return jQuery; return jQuery;
} ) ); } );
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
/*eslint-disable no-unused-vars*/
/*! /*!
* jQuery JavaScript Library v3.0.0 -ajax,-ajax/jsonp,-ajax/load,-ajax/parseXML,-ajax/script,-ajax/var/location,-ajax/var/nonce,-ajax/var/rquery,-ajax/xhr,-manipulation/_evalUrl,-event/ajax,-effects,-effects/Tween,-effects/animatedSelector,-deprecated * jQuery JavaScript Library v3.1.0 -ajax,-ajax/jsonp,-ajax/load,-ajax/parseXML,-ajax/script,-ajax/var/location,-ajax/var/nonce,-ajax/var/rquery,-ajax/xhr,-manipulation/_evalUrl,-event/ajax,-effects,-effects/Tween,-effects/animatedSelector,-deprecated
* https://jquery.com/ * https://jquery.com/
* *
* Includes Sizzle.js * Includes Sizzle.js
...@@ -9,7 +10,7 @@ ...@@ -9,7 +10,7 @@
* Released under the MIT license * Released under the MIT license
* https://jquery.org/license * https://jquery.org/license
* *
* Date: 2016-06-09T18:03Z * Date: 2016-07-07T21:44Z
*/ */
( function( global, factory ) { ( function( global, factory ) {
...@@ -37,7 +38,7 @@ ...@@ -37,7 +38,7 @@
} }
// Pass this if window is not defined yet // Pass this if window is not defined yet
}( typeof window !== "undefined" ? window : this, function( window, noGlobal ) { } )( typeof window !== "undefined" ? window : this, function( window, noGlobal ) {
// Edge <= 12 - 13+, Firefox <=18 - 45+, IE 10 - 11, Safari 5.1 - 9+, iOS 6 - 9.1 // Edge <= 12 - 13+, Firefox <=18 - 45+, IE 10 - 11, Safari 5.1 - 9+, iOS 6 - 9.1
// throw exceptions when non-strict code (e.g., ASP.NET 4.5) accesses strict mode // throw exceptions when non-strict code (e.g., ASP.NET 4.5) accesses strict mode
...@@ -81,10 +82,14 @@ var support = {}; ...@@ -81,10 +82,14 @@ var support = {};
script.text = code; script.text = code;
doc.head.appendChild( script ).parentNode.removeChild( script ); doc.head.appendChild( script ).parentNode.removeChild( script );
} }
/* global Symbol */
// Defining this global in .eslintrc would create a danger of using the global
// unguarded in another place, it seems safer to define global only for this module
var var
version = "3.0.0 -ajax,-ajax/jsonp,-ajax/load,-ajax/parseXML,-ajax/script,-ajax/var/location,-ajax/var/nonce,-ajax/var/rquery,-ajax/xhr,-manipulation/_evalUrl,-event/ajax,-effects,-effects/Tween,-effects/animatedSelector,-deprecated", version = "3.1.0 -ajax,-ajax/jsonp,-ajax/load,-ajax/parseXML,-ajax/script,-ajax/var/location,-ajax/var/nonce,-ajax/var/rquery,-ajax/xhr,-manipulation/_evalUrl,-event/ajax,-effects,-effects/Tween,-effects/animatedSelector,-deprecated",
// Define a local copy of jQuery // Define a local copy of jQuery
jQuery = function( selector, context ) { jQuery = function( selector, context ) {
...@@ -316,7 +321,11 @@ jQuery.extend( { ...@@ -316,7 +321,11 @@ jQuery.extend( {
}, },
isEmptyObject: function( obj ) { isEmptyObject: function( obj ) {
/* eslint-disable no-unused-vars */
// See https://github.com/eslint/eslint/issues/6125
var name; var name;
for ( name in obj ) { for ( name in obj ) {
return false; return false;
} }
...@@ -506,15 +515,9 @@ jQuery.extend( { ...@@ -506,15 +515,9 @@ jQuery.extend( {
support: support support: support
} ); } );
// JSHint would error on this code due to the Symbol not being defined in ES5.
// Defining this global in .jshintrc would create a danger of using the global
// unguarded in another place, it seems safer to just disable JSHint for these
// three lines.
/* jshint ignore: start */
if ( typeof Symbol === "function" ) { if ( typeof Symbol === "function" ) {
jQuery.fn[ Symbol.iterator ] = arr[ Symbol.iterator ]; jQuery.fn[ Symbol.iterator ] = arr[ Symbol.iterator ];
} }
/* jshint ignore: end */
// Populate the class2type map // Populate the class2type map
jQuery.each( "Boolean Number String Function Array Date RegExp Object Error Symbol".split( " " ), jQuery.each( "Boolean Number String Function Array Date RegExp Object Error Symbol".split( " " ),
...@@ -2753,6 +2756,7 @@ jQuery.escapeSelector = Sizzle.escape; ...@@ -2753,6 +2756,7 @@ jQuery.escapeSelector = Sizzle.escape;
var dir = function( elem, dir, until ) { var dir = function( elem, dir, until ) {
var matched = [], var matched = [],
truncate = until !== undefined; truncate = until !== undefined;
...@@ -2794,7 +2798,6 @@ var risSimple = /^.[^:#\[\.,]*$/; ...@@ -2794,7 +2798,6 @@ var risSimple = /^.[^:#\[\.,]*$/;
function winnow( elements, qualifier, not ) { function winnow( elements, qualifier, not ) {
if ( jQuery.isFunction( qualifier ) ) { if ( jQuery.isFunction( qualifier ) ) {
return jQuery.grep( elements, function( elem, i ) { return jQuery.grep( elements, function( elem, i ) {
/* jshint -W018 */
return !!qualifier.call( elem, i, elem ) !== not; return !!qualifier.call( elem, i, elem ) !== not;
} ); } );
...@@ -3420,7 +3423,7 @@ function adoptValue( value, resolve, reject ) { ...@@ -3420,7 +3423,7 @@ function adoptValue( value, resolve, reject ) {
// For Promises/A+, convert exceptions into rejections // For Promises/A+, convert exceptions into rejections
// Since jQuery.when doesn't unwrap thenables, we can skip the extra checks appearing in // Since jQuery.when doesn't unwrap thenables, we can skip the extra checks appearing in
// Deferred#then to conditionally suppress rejection. // Deferred#then to conditionally suppress rejection.
} catch ( /*jshint -W002 */ value ) { } catch ( value ) {
// Support: Android 4.0 only // Support: Android 4.0 only
// Strict mode functions invoked without .call/.apply get global-object context // Strict mode functions invoked without .call/.apply get global-object context
...@@ -3785,12 +3788,29 @@ jQuery.Deferred.exceptionHook = function( error, stack ) { ...@@ -3785,12 +3788,29 @@ jQuery.Deferred.exceptionHook = function( error, stack ) {
jQuery.readyException = function( error ) {
window.setTimeout( function() {
throw error;
} );
};
// The deferred used on DOM ready // The deferred used on DOM ready
var readyList = jQuery.Deferred(); var readyList = jQuery.Deferred();
jQuery.fn.ready = function( fn ) { jQuery.fn.ready = function( fn ) {
readyList.then( fn ); readyList
.then( fn )
// Wrap jQuery.readyException in a function so that the lookup
// happens at the time of error handling instead of callback
// registration.
.catch( function( error ) {
jQuery.readyException( error );
} );
return this; return this;
}; };
...@@ -3930,7 +3950,6 @@ var acceptData = function( owner ) { ...@@ -3930,7 +3950,6 @@ var acceptData = function( owner ) {
// - Node.DOCUMENT_NODE // - Node.DOCUMENT_NODE
// - Object // - Object
// - Any // - Any
/* jshint -W018 */
return owner.nodeType === 1 || owner.nodeType === 9 || !( +owner.nodeType ); return owner.nodeType === 1 || owner.nodeType === 9 || !( +owner.nodeType );
}; };
...@@ -4431,8 +4450,12 @@ function adjustCSS( elem, prop, valueParts, tween ) { ...@@ -4431,8 +4450,12 @@ function adjustCSS( elem, prop, valueParts, tween ) {
scale = 1, scale = 1,
maxIterations = 20, maxIterations = 20,
currentValue = tween ? currentValue = tween ?
function() { return tween.cur(); } : function() {
function() { return jQuery.css( elem, prop, "" ); }, return tween.cur();
} :
function() {
return jQuery.css( elem, prop, "" );
},
initial = currentValue(), initial = currentValue(),
unit = valueParts && valueParts[ 3 ] || ( jQuery.cssNumber[ prop ] ? "" : "px" ), unit = valueParts && valueParts[ 3 ] || ( jQuery.cssNumber[ prop ] ? "" : "px" ),
...@@ -5474,8 +5497,14 @@ jQuery.fn.extend( { ...@@ -5474,8 +5497,14 @@ jQuery.fn.extend( {
var var
/* eslint-disable max-len */
// See https://github.com/eslint/eslint/issues/3229
rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi, rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,
/* eslint-enable */
// Support: IE <=10 - 11, Edge 12 - 13 // Support: IE <=10 - 11, Edge 12 - 13
// In IE/Edge using regex groups here causes severe slowdowns. // In IE/Edge using regex groups here causes severe slowdowns.
// See https://connect.microsoft.com/IE/feedback/details/1736512/ // See https://connect.microsoft.com/IE/feedback/details/1736512/
...@@ -7082,11 +7111,16 @@ jQuery.extend( { ...@@ -7082,11 +7111,16 @@ jQuery.extend( {
while ( i-- ) { while ( i-- ) {
option = options[ i ]; option = options[ i ];
/* eslint-disable no-cond-assign */
if ( option.selected = if ( option.selected =
jQuery.inArray( jQuery.valHooks.option.get( option ), values ) > -1 jQuery.inArray( jQuery.valHooks.option.get( option ), values ) > -1
) { ) {
optionSet = true; optionSet = true;
} }
/* eslint-enable no-cond-assign */
} }
// Force browsers to behave consistently when non-matching value is set // Force browsers to behave consistently when non-matching value is set
...@@ -7929,4 +7963,4 @@ if ( !noGlobal ) { ...@@ -7929,4 +7963,4 @@ if ( !noGlobal ) {
return jQuery; return jQuery;
} ) ); } );
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -2,12 +2,12 @@ ...@@ -2,12 +2,12 @@
"name": "jquery", "name": "jquery",
"title": "jQuery", "title": "jQuery",
"description": "JavaScript library for DOM operations", "description": "JavaScript library for DOM operations",
"version": "3.0.0", "version": "3.1.0",
"main": "dist/jquery.js", "main": "dist/jquery.js",
"homepage": "https://jquery.com", "homepage": "https://jquery.com",
"author": { "author": {
"name": "jQuery Foundation and other contributors", "name": "jQuery Foundation and other contributors",
"url": "https://github.com/jquery/jquery/blob/3.0.0/AUTHORS.txt" "url": "https://github.com/jquery/jquery/blob/3.1.0/AUTHORS.txt"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
...@@ -29,15 +29,15 @@ ...@@ -29,15 +29,15 @@
"commitplease": "2.3.1", "commitplease": "2.3.1",
"core-js": "2.2.2", "core-js": "2.2.2",
"cross-spawn": "2.2.3", "cross-spawn": "2.2.3",
"eslint-config-jquery": "0.1.6",
"grunt": "1.0.1", "grunt": "1.0.1",
"grunt-babel": "6.0.0", "grunt-babel": "6.0.0",
"grunt-cli": "1.2.0", "grunt-cli": "1.2.0",
"grunt-compare-size": "0.4.2", "grunt-compare-size": "0.4.2",
"grunt-contrib-jshint": "1.0.0",
"grunt-contrib-uglify": "1.0.1", "grunt-contrib-uglify": "1.0.1",
"grunt-contrib-watch": "1.0.0", "grunt-contrib-watch": "1.0.0",
"grunt-eslint": "18.1.0",
"grunt-git-authors": "3.2.0", "grunt-git-authors": "3.2.0",
"grunt-jscs": "2.8.0",
"grunt-jsonlint": "1.0.7", "grunt-jsonlint": "1.0.7",
"grunt-newer": "1.2.0", "grunt-newer": "1.2.0",
"grunt-npmcopy": "0.1.0", "grunt-npmcopy": "0.1.0",
......
{ {
"boss": true,
"curly": true,
"eqeqeq": true,
"eqnull": true,
"expr": true,
"immed": true,
"noarg": true,
"quotmark": "double",
"strict": true,
"undef": true,
"unused": true,
"sub": true,
// Support: IE <=9 only, Android <=4.0 only // Support: IE <=9 only, Android <=4.0 only
// The above browsers are failing a lot of tests in the ES5 // The above browsers are failing a lot of tests in the ES5
// test suite at http://test262.ecmascript.org. // test suite at http://test262.ecmascript.org.
"es3": true, "parserOptions": {
"ecmaVersion": 3
},
"globals": { "globals": {
"window": true, "window": true,
"JSON": false,
"jQuery": true, "jQuery": true,
"define": true, "define": true,
"module": true, "module": true,
"noGlobal": true "noGlobal": true
},
"rules": {
"strict": ["error", "function"]
} }
} }
...@@ -306,6 +306,7 @@ jQuery.extend( { ...@@ -306,6 +306,7 @@ jQuery.extend( {
processData: true, processData: true,
async: true, async: true,
contentType: "application/x-www-form-urlencoded; charset=UTF-8", contentType: "application/x-www-form-urlencoded; charset=UTF-8",
/* /*
timeout: 0, timeout: 0,
data: null, data: null,
......
...@@ -143,11 +143,16 @@ jQuery.extend( { ...@@ -143,11 +143,16 @@ jQuery.extend( {
while ( i-- ) { while ( i-- ) {
option = options[ i ]; option = options[ i ];
/* eslint-disable no-cond-assign */
if ( option.selected = if ( option.selected =
jQuery.inArray( jQuery.valHooks.option.get( option ), values ) > -1 jQuery.inArray( jQuery.valHooks.option.get( option ), values ) > -1
) { ) {
optionSet = true; optionSet = true;
} }
/* eslint-enable no-cond-assign */
} }
// Force browsers to behave consistently when non-matching value is set // Force browsers to behave consistently when non-matching value is set
......
/* global Symbol */
// Defining this global in .eslintrc would create a danger of using the global
// unguarded in another place, it seems safer to define global only for this module
define( [ define( [
"./var/arr", "./var/arr",
"./var/document", "./var/document",
...@@ -20,7 +24,7 @@ define( [ ...@@ -20,7 +24,7 @@ define( [
"use strict"; "use strict";
var var
version = "3.0.0", version = "3.1.0",
// Define a local copy of jQuery // Define a local copy of jQuery
jQuery = function( selector, context ) { jQuery = function( selector, context ) {
...@@ -252,7 +256,11 @@ jQuery.extend( { ...@@ -252,7 +256,11 @@ jQuery.extend( {
}, },
isEmptyObject: function( obj ) { isEmptyObject: function( obj ) {
/* eslint-disable no-unused-vars */
// See https://github.com/eslint/eslint/issues/6125
var name; var name;
for ( name in obj ) { for ( name in obj ) {
return false; return false;
} }
...@@ -442,15 +450,9 @@ jQuery.extend( { ...@@ -442,15 +450,9 @@ jQuery.extend( {
support: support support: support
} ); } );
// JSHint would error on this code due to the Symbol not being defined in ES5.
// Defining this global in .jshintrc would create a danger of using the global
// unguarded in another place, it seems safer to just disable JSHint for these
// three lines.
/* jshint ignore: start */
if ( typeof Symbol === "function" ) { if ( typeof Symbol === "function" ) {
jQuery.fn[ Symbol.iterator ] = arr[ Symbol.iterator ]; jQuery.fn[ Symbol.iterator ] = arr[ Symbol.iterator ];
} }
/* jshint ignore: end */
// Populate the class2type map // Populate the class2type map
jQuery.each( "Boolean Number String Function Array Date RegExp Object Error Symbol".split( " " ), jQuery.each( "Boolean Number String Function Array Date RegExp Object Error Symbol".split( " " ),
......
define( [ define( [
"../core", "../core",
"../var/document", "../var/document",
"../core/readyException",
"../deferred" "../deferred"
], function( jQuery, document ) { ], function( jQuery, document ) {
...@@ -11,7 +12,15 @@ var readyList = jQuery.Deferred(); ...@@ -11,7 +12,15 @@ var readyList = jQuery.Deferred();
jQuery.fn.ready = function( fn ) { jQuery.fn.ready = function( fn ) {
readyList.then( fn ); readyList
.then( fn )
// Wrap jQuery.readyException in a function so that the lookup
// happens at the time of error handling instead of callback
// registration.
.catch( function( error ) {
jQuery.readyException( error );
} );
return this; return this;
}; };
......
define( [
"../core"
], function( jQuery ) {
"use strict";
jQuery.readyException = function( error ) {
window.setTimeout( function() {
throw error;
} );
};
} );
...@@ -10,8 +10,12 @@ function adjustCSS( elem, prop, valueParts, tween ) { ...@@ -10,8 +10,12 @@ function adjustCSS( elem, prop, valueParts, tween ) {
scale = 1, scale = 1,
maxIterations = 20, maxIterations = 20,
currentValue = tween ? currentValue = tween ?
function() { return tween.cur(); } : function() {
function() { return jQuery.css( elem, prop, "" ); }, return tween.cur();
} :
function() {
return jQuery.css( elem, prop, "" );
},
initial = currentValue(), initial = currentValue(),
unit = valueParts && valueParts[ 3 ] || ( jQuery.cssNumber[ prop ] ? "" : "px" ), unit = valueParts && valueParts[ 3 ] || ( jQuery.cssNumber[ prop ] ? "" : "px" ),
......
...@@ -13,7 +13,6 @@ return function( owner ) { ...@@ -13,7 +13,6 @@ return function( owner ) {
// - Node.DOCUMENT_NODE // - Node.DOCUMENT_NODE
// - Object // - Object
// - Any // - Any
/* jshint -W018 */
return owner.nodeType === 1 || owner.nodeType === 9 || !( +owner.nodeType ); return owner.nodeType === 1 || owner.nodeType === 9 || !( +owner.nodeType );
}; };
......
...@@ -37,7 +37,7 @@ function adoptValue( value, resolve, reject ) { ...@@ -37,7 +37,7 @@ function adoptValue( value, resolve, reject ) {
// For Promises/A+, convert exceptions into rejections // For Promises/A+, convert exceptions into rejections
// Since jQuery.when doesn't unwrap thenables, we can skip the extra checks appearing in // Since jQuery.when doesn't unwrap thenables, we can skip the extra checks appearing in
// Deferred#then to conditionally suppress rejection. // Deferred#then to conditionally suppress rejection.
} catch ( /*jshint -W002 */ value ) { } catch ( value ) {
// Support: Android 4.0 only // Support: Android 4.0 only
// Strict mode functions invoked without .call/.apply get global-object context // Strict mode functions invoked without .call/.apply get global-object context
......
...@@ -51,7 +51,7 @@ function genFx( type, includeWidth ) { ...@@ -51,7 +51,7 @@ function genFx( type, includeWidth ) {
// If we include width, step value is 1 to do all cssExpand values, // If we include width, step value is 1 to do all cssExpand values,
// otherwise step value is 2 to skip over Left and Right // otherwise step value is 2 to skip over Left and Right
includeWidth = includeWidth ? 1 : 0; includeWidth = includeWidth ? 1 : 0;
for ( ; i < 4 ; i += 2 - includeWidth ) { for ( ; i < 4; i += 2 - includeWidth ) {
which = cssExpand[ i ]; which = cssExpand[ i ];
attrs[ "margin" + which ] = attrs[ "padding" + which ] = type; attrs[ "margin" + which ] = attrs[ "padding" + which ] = type;
} }
...@@ -78,7 +78,6 @@ function createTween( value, prop, animation ) { ...@@ -78,7 +78,6 @@ function createTween( value, prop, animation ) {
} }
function defaultPrefilter( elem, props, opts ) { function defaultPrefilter( elem, props, opts ) {
/* jshint validthis: true */
var prop, value, toggle, hooks, oldfire, propTween, restoreDisplay, display, var prop, value, toggle, hooks, oldfire, propTween, restoreDisplay, display,
isBox = "width" in props || "height" in props, isBox = "width" in props || "height" in props,
anim = this, anim = this,
...@@ -220,9 +219,12 @@ function defaultPrefilter( elem, props, opts ) { ...@@ -220,9 +219,12 @@ function defaultPrefilter( elem, props, opts ) {
showHide( [ elem ], true ); showHide( [ elem ], true );
} }
/* jshint -W083 */ /* eslint-disable no-loop-func */
anim.done( function() { anim.done( function() {
/* eslint-enable no-loop-func */
// The final step of a "hide" animation is actually hiding the element // The final step of a "hide" animation is actually hiding the element
if ( !hidden ) { if ( !hidden ) {
showHide( [ elem ] ); showHide( [ elem ] );
...@@ -307,7 +309,7 @@ function Animation( elem, properties, options ) { ...@@ -307,7 +309,7 @@ function Animation( elem, properties, options ) {
index = 0, index = 0,
length = animation.tweens.length; length = animation.tweens.length;
for ( ; index < length ; index++ ) { for ( ; index < length; index++ ) {
animation.tweens[ index ].run( percent ); animation.tweens[ index ].run( percent );
} }
...@@ -348,7 +350,7 @@ function Animation( elem, properties, options ) { ...@@ -348,7 +350,7 @@ function Animation( elem, properties, options ) {
return this; return this;
} }
stopped = true; stopped = true;
for ( ; index < length ; index++ ) { for ( ; index < length; index++ ) {
animation.tweens[ index ].run( 1 ); animation.tweens[ index ].run( 1 );
} }
...@@ -366,7 +368,7 @@ function Animation( elem, properties, options ) { ...@@ -366,7 +368,7 @@ function Animation( elem, properties, options ) {
propFilter( props, animation.opts.specialEasing ); propFilter( props, animation.opts.specialEasing );
for ( ; index < length ; index++ ) { for ( ; index < length; index++ ) {
result = Animation.prefilters[ index ].call( animation, elem, props, animation.opts ); result = Animation.prefilters[ index ].call( animation, elem, props, animation.opts );
if ( result ) { if ( result ) {
if ( jQuery.isFunction( result.stop ) ) { if ( jQuery.isFunction( result.stop ) ) {
...@@ -420,7 +422,7 @@ jQuery.Animation = jQuery.extend( Animation, { ...@@ -420,7 +422,7 @@ jQuery.Animation = jQuery.extend( Animation, {
index = 0, index = 0,
length = props.length; length = props.length;
for ( ; index < length ; index++ ) { for ( ; index < length; index++ ) {
prop = props[ index ]; prop = props[ index ];
Animation.tweeners[ prop ] = Animation.tweeners[ prop ] || []; Animation.tweeners[ prop ] = Animation.tweeners[ prop ] || [];
Animation.tweeners[ prop ].unshift( callback ); Animation.tweeners[ prop ].unshift( callback );
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// This file is included in a different way from all the others // This file is included in a different way from all the others
// so the "use strict" pragma is not needed. // so the "use strict" pragma is not needed.
/* jshint strict: false */ /* eslint strict: "off" */
/* ExcludeEnd */ /* ExcludeEnd */
......
...@@ -29,8 +29,14 @@ define( [ ...@@ -29,8 +29,14 @@ define( [
"use strict"; "use strict";
var var
/* eslint-disable max-len */
// See https://github.com/eslint/eslint/issues/3229
rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi, rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,
/* eslint-enable */
// Support: IE <=10 - 11, Edge 12 - 13 // Support: IE <=10 - 11, Edge 12 - 13
// In IE/Edge using regex groups here causes severe slowdowns. // In IE/Edge using regex groups here causes severe slowdowns.
// See https://connect.microsoft.com/IE/feedback/details/1736512/ // See https://connect.microsoft.com/IE/feedback/details/1736512/
......
define( [ "./selector-sizzle" ], function() {} ); define( [ "./selector-sizzle" ], function() {
"use strict";
} );
...@@ -13,7 +13,6 @@ var risSimple = /^.[^:#\[\.,]*$/; ...@@ -13,7 +13,6 @@ var risSimple = /^.[^:#\[\.,]*$/;
function winnow( elements, qualifier, not ) { function winnow( elements, qualifier, not ) {
if ( jQuery.isFunction( qualifier ) ) { if ( jQuery.isFunction( qualifier ) ) {
return jQuery.grep( elements, function( elem, i ) { return jQuery.grep( elements, function( elem, i ) {
/* jshint -W018 */
return !!qualifier.call( elem, i, elem ) !== not; return !!qualifier.call( elem, i, elem ) !== not;
} ); } );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment