You need to sign in or sign up before continuing.

Release 3.2.1

parent deda719c
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
For information on how to get started and how to use jQuery, please see [jQuery's documentation](http://api.jquery.com/). For information on how to get started and how to use jQuery, please see [jQuery's documentation](http://api.jquery.com/).
For source files and issues, please visit the [jQuery repo](https://github.com/jquery/jquery). For source files and issues, please visit the [jQuery repo](https://github.com/jquery/jquery).
If upgrading, please see the [blog post for 3.2.0](http://blog.jquery.com/2017/03/16/jquery-3-2-0-is-out/). This includes notable differences from the previous version and a more readable changelog. If upgrading, please see the [blog post for 3.2.1](https://blog.jquery.com/2017/03/20/jquery-3-2-1-now-available/). This includes notable differences from the previous version and a more readable changelog.
## Including jQuery ## Including jQuery
...@@ -16,7 +16,7 @@ Below are some of the most common ways to include jQuery. ...@@ -16,7 +16,7 @@ Below are some of the most common ways to include jQuery.
#### Script tag #### Script tag
```html ```html
<script src="https://code.jquery.com/jquery-3.2.0.min.js"></script> <script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
``` ```
#### Babel #### Babel
......
...@@ -24,7 +24,7 @@ define( [ ...@@ -24,7 +24,7 @@ define( [
"use strict"; "use strict";
var var
version = "3.2.0", version = "3.2.1",
// Define a local copy of jQuery // Define a local copy of jQuery
jQuery = function( selector, context ) { jQuery = function( selector, context ) {
......
/*! /*!
* jQuery JavaScript Library v3.2.0 * jQuery JavaScript Library v3.2.1
* https://jquery.com/ * https://jquery.com/
* *
* Includes Sizzle.js * Includes Sizzle.js
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
* Released under the MIT license * Released under the MIT license
* https://jquery.org/license * https://jquery.org/license
* *
* Date: 2017-03-16T21:26Z * Date: 2017-03-20T18:59Z
*/ */
( function( global, factory ) { ( function( global, factory ) {
...@@ -88,7 +88,7 @@ var support = {}; ...@@ -88,7 +88,7 @@ var support = {};
var var
version = "3.2.0", version = "3.2.1",
// Define a local copy of jQuery // Define a local copy of jQuery
jQuery = function( selector, context ) { jQuery = function( selector, context ) {
...@@ -5343,11 +5343,9 @@ jQuery.event = { ...@@ -5343,11 +5343,9 @@ jQuery.event = {
}, },
click: { click: {
// For checkable types, fire native event so checked state will be right // For checkbox, fire native event so checked state will be right
trigger: function() { trigger: function() {
if ( rcheckableType.test( this.type ) && if ( this.type === "checkbox" && this.click && nodeName( this, "input" ) ) {
this.click && nodeName( this, "input" ) ) {
this.click(); this.click();
return false; return false;
} }
...@@ -6167,6 +6165,11 @@ var getStyles = function( elem ) { ...@@ -6167,6 +6165,11 @@ var getStyles = function( elem ) {
function curCSS( elem, name, computed ) { function curCSS( elem, name, computed ) {
var width, minWidth, maxWidth, ret, var width, minWidth, maxWidth, ret,
// Support: Firefox 51+
// Retrieving style before computed somehow
// fixes an issue with getting wrong values
// on detached elements
style = elem.style; style = elem.style;
computed = computed || getStyles( elem ); computed = computed || getStyles( elem );
...@@ -6355,6 +6358,12 @@ function getWidthOrHeight( elem, name, extra ) { ...@@ -6355,6 +6358,12 @@ function getWidthOrHeight( elem, name, extra ) {
valueIsBorderBox = isBorderBox && valueIsBorderBox = isBorderBox &&
( support.boxSizingReliable() || val === elem.style[ name ] ); ( support.boxSizingReliable() || val === elem.style[ name ] );
// Fall back to offsetWidth/Height when value is "auto"
// This happens for inline elements with no explicit setting (gh-3571)
if ( val === "auto" ) {
val = elem[ "offset" + name[ 0 ].toUpperCase() + name.slice( 1 ) ];
}
// Normalize "", auto, and prepare for extra // Normalize "", auto, and prepare for extra
val = parseFloat( val ) || 0; val = parseFloat( val ) || 0;
...@@ -10171,16 +10180,16 @@ jQuery.fn.extend( { ...@@ -10171,16 +10180,16 @@ jQuery.fn.extend( {
return arguments.length === 1 ? return arguments.length === 1 ?
this.off( selector, "**" ) : this.off( selector, "**" ) :
this.off( types, selector || "**", fn ); this.off( types, selector || "**", fn );
},
holdReady: function( hold ) {
if ( hold ) {
jQuery.readyWait++;
} else {
jQuery.ready( true );
}
} }
} ); } );
jQuery.holdReady = function( hold ) {
if ( hold ) {
jQuery.readyWait++;
} else {
jQuery.ready( true );
}
};
jQuery.isArray = Array.isArray; jQuery.isArray = Array.isArray;
jQuery.parseJSON = JSON.parse; jQuery.parseJSON = JSON.parse;
jQuery.nodeName = nodeName; jQuery.nodeName = nodeName;
......
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.
/*! /*!
* jQuery JavaScript Library v3.2.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 * jQuery JavaScript Library v3.2.1 -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
* https://jquery.com/ * https://jquery.com/
* *
* Includes Sizzle.js * Includes Sizzle.js
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
* Released under the MIT license * Released under the MIT license
* https://jquery.org/license * https://jquery.org/license
* *
* Date: 2017-03-16T21:26Z * Date: 2017-03-20T19:00Z
*/ */
( function( global, factory ) { ( function( global, factory ) {
...@@ -88,7 +88,7 @@ var support = {}; ...@@ -88,7 +88,7 @@ var support = {};
var var
version = "3.2.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", version = "3.2.1 -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",
// Define a local copy of jQuery // Define a local copy of jQuery
jQuery = function( selector, context ) { jQuery = function( selector, context ) {
...@@ -5343,11 +5343,9 @@ jQuery.event = { ...@@ -5343,11 +5343,9 @@ jQuery.event = {
}, },
click: { click: {
// For checkable types, fire native event so checked state will be right // For checkbox, fire native event so checked state will be right
trigger: function() { trigger: function() {
if ( rcheckableType.test( this.type ) && if ( this.type === "checkbox" && this.click && nodeName( this, "input" ) ) {
this.click && nodeName( this, "input" ) ) {
this.click(); this.click();
return false; return false;
} }
...@@ -6167,6 +6165,11 @@ var getStyles = function( elem ) { ...@@ -6167,6 +6165,11 @@ var getStyles = function( elem ) {
function curCSS( elem, name, computed ) { function curCSS( elem, name, computed ) {
var width, minWidth, maxWidth, ret, var width, minWidth, maxWidth, ret,
// Support: Firefox 51+
// Retrieving style before computed somehow
// fixes an issue with getting wrong values
// on detached elements
style = elem.style; style = elem.style;
computed = computed || getStyles( elem ); computed = computed || getStyles( elem );
...@@ -6355,6 +6358,12 @@ function getWidthOrHeight( elem, name, extra ) { ...@@ -6355,6 +6358,12 @@ function getWidthOrHeight( elem, name, extra ) {
valueIsBorderBox = isBorderBox && valueIsBorderBox = isBorderBox &&
( support.boxSizingReliable() || val === elem.style[ name ] ); ( support.boxSizingReliable() || val === elem.style[ name ] );
// Fall back to offsetWidth/Height when value is "auto"
// This happens for inline elements with no explicit setting (gh-3571)
if ( val === "auto" ) {
val = elem[ "offset" + name[ 0 ].toUpperCase() + name.slice( 1 ) ];
}
// Normalize "", auto, and prepare for extra // Normalize "", auto, and prepare for extra
val = parseFloat( val ) || 0; val = parseFloat( val ) || 0;
...@@ -8078,16 +8087,16 @@ jQuery.fn.extend( { ...@@ -8078,16 +8087,16 @@ jQuery.fn.extend( {
return arguments.length === 1 ? return arguments.length === 1 ?
this.off( selector, "**" ) : this.off( selector, "**" ) :
this.off( types, selector || "**", fn ); this.off( types, selector || "**", fn );
},
holdReady: function( hold ) {
if ( hold ) {
jQuery.readyWait++;
} else {
jQuery.ready( true );
}
} }
} ); } );
jQuery.holdReady = function( hold ) {
if ( hold ) {
jQuery.readyWait++;
} else {
jQuery.ready( true );
}
};
jQuery.isArray = Array.isArray; jQuery.isArray = Array.isArray;
jQuery.parseJSON = JSON.parse; jQuery.parseJSON = JSON.parse;
jQuery.nodeName = nodeName; jQuery.nodeName = nodeName;
......
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.2.0", "version": "3.2.1",
"main": "dist/jquery.js", "main": "dist/jquery.js",
"homepage": "https://jquery.com", "homepage": "https://jquery.com",
"author": { "author": {
"name": "JS Foundation and other contributors", "name": "JS Foundation and other contributors",
"url": "https://github.com/jquery/jquery/blob/3.2.0/AUTHORS.txt" "url": "https://github.com/jquery/jquery/blob/3.2.1/AUTHORS.txt"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
......
...@@ -24,7 +24,7 @@ define( [ ...@@ -24,7 +24,7 @@ define( [
"use strict"; "use strict";
var var
version = "3.2.0", version = "3.2.1",
// Define a local copy of jQuery // Define a local copy of jQuery
jQuery = function( selector, context ) { jQuery = function( selector, context ) {
......
...@@ -144,6 +144,12 @@ function getWidthOrHeight( elem, name, extra ) { ...@@ -144,6 +144,12 @@ function getWidthOrHeight( elem, name, extra ) {
valueIsBorderBox = isBorderBox && valueIsBorderBox = isBorderBox &&
( support.boxSizingReliable() || val === elem.style[ name ] ); ( support.boxSizingReliable() || val === elem.style[ name ] );
// Fall back to offsetWidth/Height when value is "auto"
// This happens for inline elements with no explicit setting (gh-3571)
if ( val === "auto" ) {
val = elem[ "offset" + name[ 0 ].toUpperCase() + name.slice( 1 ) ];
}
// Normalize "", auto, and prepare for extra // Normalize "", auto, and prepare for extra
val = parseFloat( val ) || 0; val = parseFloat( val ) || 0;
......
...@@ -11,6 +11,11 @@ define( [ ...@@ -11,6 +11,11 @@ define( [
function curCSS( elem, name, computed ) { function curCSS( elem, name, computed ) {
var width, minWidth, maxWidth, ret, var width, minWidth, maxWidth, ret,
// Support: Firefox 51+
// Retrieving style before computed somehow
// fixes an issue with getting wrong values
// on detached elements
style = elem.style; style = elem.style;
computed = computed || getStyles( elem ); computed = computed || getStyles( elem );
......
...@@ -23,16 +23,16 @@ jQuery.fn.extend( { ...@@ -23,16 +23,16 @@ jQuery.fn.extend( {
return arguments.length === 1 ? return arguments.length === 1 ?
this.off( selector, "**" ) : this.off( selector, "**" ) :
this.off( types, selector || "**", fn ); this.off( types, selector || "**", fn );
},
holdReady: function( hold ) {
if ( hold ) {
jQuery.readyWait++;
} else {
jQuery.ready( true );
}
} }
} ); } );
jQuery.holdReady = function( hold ) {
if ( hold ) {
jQuery.readyWait++;
} else {
jQuery.ready( true );
}
};
jQuery.isArray = Array.isArray; jQuery.isArray = Array.isArray;
jQuery.parseJSON = JSON.parse; jQuery.parseJSON = JSON.parse;
jQuery.nodeName = nodeName; jQuery.nodeName = nodeName;
......
...@@ -3,15 +3,13 @@ define( [ ...@@ -3,15 +3,13 @@ define( [
"./var/document", "./var/document",
"./var/documentElement", "./var/documentElement",
"./var/rnothtmlwhite", "./var/rnothtmlwhite",
"./var/rcheckableType",
"./var/slice", "./var/slice",
"./data/var/dataPriv", "./data/var/dataPriv",
"./core/nodeName", "./core/nodeName",
"./core/init", "./core/init",
"./selector" "./selector"
], function( jQuery, document, documentElement, rnothtmlwhite, ], function( jQuery, document, documentElement, rnothtmlwhite, slice, dataPriv, nodeName ) {
rcheckableType, slice, dataPriv, nodeName ) {
"use strict"; "use strict";
...@@ -477,11 +475,9 @@ jQuery.event = { ...@@ -477,11 +475,9 @@ jQuery.event = {
}, },
click: { click: {
// For checkable types, fire native event so checked state will be right // For checkbox, fire native event so checked state will be right
trigger: function() { trigger: function() {
if ( rcheckableType.test( this.type ) && if ( this.type === "checkbox" && this.click && nodeName( this, "input" ) ) {
this.click && nodeName( this, "input" ) ) {
this.click(); this.click();
return false; return false;
} }
......
...@@ -2,8 +2,8 @@ define( [ ...@@ -2,8 +2,8 @@ define( [
"./core", "./core",
"./var/concat", "./var/concat",
"./var/push", "./var/push",
"./var/rcheckableType",
"./core/access", "./core/access",
"./manipulation/var/rcheckableType",
"./manipulation/var/rtagName", "./manipulation/var/rtagName",
"./manipulation/var/rscriptType", "./manipulation/var/rscriptType",
"./manipulation/wrapMap", "./manipulation/wrapMap",
...@@ -22,8 +22,8 @@ define( [ ...@@ -22,8 +22,8 @@ define( [
"./traversing", "./traversing",
"./selector", "./selector",
"./event" "./event"
], function( jQuery, concat, push, rcheckableType, ], function( jQuery, concat, push, access,
access, rtagName, rscriptType, rcheckableType, rtagName, rscriptType,
wrapMap, getAll, setGlobalEval, buildFragment, support, wrapMap, getAll, setGlobalEval, buildFragment, support,
dataPriv, dataUser, acceptData, DOMEval, nodeName ) { dataPriv, dataUser, acceptData, DOMEval, nodeName ) {
......
define( [ define( [
"./core", "./core",
"./var/rcheckableType", "./manipulation/var/rcheckableType",
"./core/init", "./core/init",
"./traversing", // filter "./traversing", // filter
"./attributes/prop" "./attributes/prop"
......
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