Skip to content

Commit 77d2a51

Browse files
committed
Release 3.2.1
1 parent deda719 commit 77d2a51

File tree

17 files changed

+87
-62
lines changed

17 files changed

+87
-62
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
For information on how to get started and how to use jQuery, please see [jQuery's documentation](http://api.jquery.com/).
66
For source files and issues, please visit the [jQuery repo](https://github.com/jquery/jquery).
77

8-
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.
8+
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.
99

1010
## Including jQuery
1111

@@ -16,7 +16,7 @@ Below are some of the most common ways to include jQuery.
1616
#### Script tag
1717

1818
```html
19-
<script src="https://code.jquery.com/jquery-3.2.0.min.js"></script>
19+
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
2020
```
2121

2222
#### Babel

dist/core.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ define( [
2424
"use strict";
2525

2626
var
27-
version = "3.2.0",
27+
version = "3.2.1",
2828

2929
// Define a local copy of jQuery
3030
jQuery = function( selector, context ) {

dist/jquery.js

Lines changed: 23 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* jQuery JavaScript Library v3.2.0
2+
* jQuery JavaScript Library v3.2.1
33
* https://jquery.com/
44
*
55
* Includes Sizzle.js
@@ -9,7 +9,7 @@
99
* Released under the MIT license
1010
* https://jquery.org/license
1111
*
12-
* Date: 2017-03-16T21:26Z
12+
* Date: 2017-03-20T18:59Z
1313
*/
1414
( function( global, factory ) {
1515

@@ -88,7 +88,7 @@ var support = {};
8888

8989

9090
var
91-
version = "3.2.0",
91+
version = "3.2.1",
9292

9393
// Define a local copy of jQuery
9494
jQuery = function( selector, context ) {
@@ -5343,11 +5343,9 @@ jQuery.event = {
53435343
},
53445344
click: {
53455345

5346-
// For checkable types, fire native event so checked state will be right
5346+
// For checkbox, fire native event so checked state will be right
53475347
trigger: function() {
5348-
if ( rcheckableType.test( this.type ) &&
5349-
this.click && nodeName( this, "input" ) ) {
5350-
5348+
if ( this.type === "checkbox" && this.click && nodeName( this, "input" ) ) {
53515349
this.click();
53525350
return false;
53535351
}
@@ -6167,6 +6165,11 @@ var getStyles = function( elem ) {
61676165

61686166
function curCSS( elem, name, computed ) {
61696167
var width, minWidth, maxWidth, ret,
6168+
6169+
// Support: Firefox 51+
6170+
// Retrieving style before computed somehow
6171+
// fixes an issue with getting wrong values
6172+
// on detached elements
61706173
style = elem.style;
61716174

61726175
computed = computed || getStyles( elem );
@@ -6355,6 +6358,12 @@ function getWidthOrHeight( elem, name, extra ) {
63556358
valueIsBorderBox = isBorderBox &&
63566359
( support.boxSizingReliable() || val === elem.style[ name ] );
63576360

6361+
// Fall back to offsetWidth/Height when value is "auto"
6362+
// This happens for inline elements with no explicit setting (gh-3571)
6363+
if ( val === "auto" ) {
6364+
val = elem[ "offset" + name[ 0 ].toUpperCase() + name.slice( 1 ) ];
6365+
}
6366+
63586367
// Normalize "", auto, and prepare for extra
63596368
val = parseFloat( val ) || 0;
63606369

@@ -10171,16 +10180,16 @@ jQuery.fn.extend( {
1017110180
return arguments.length === 1 ?
1017210181
this.off( selector, "**" ) :
1017310182
this.off( types, selector || "**", fn );
10174-
},
10175-
holdReady: function( hold ) {
10176-
if ( hold ) {
10177-
jQuery.readyWait++;
10178-
} else {
10179-
jQuery.ready( true );
10180-
}
1018110183
}
1018210184
} );
1018310185

10186+
jQuery.holdReady = function( hold ) {
10187+
if ( hold ) {
10188+
jQuery.readyWait++;
10189+
} else {
10190+
jQuery.ready( true );
10191+
}
10192+
};
1018410193
jQuery.isArray = Array.isArray;
1018510194
jQuery.parseJSON = JSON.parse;
1018610195
jQuery.nodeName = nodeName;

dist/jquery.min.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/jquery.min.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/jquery.slim.js

Lines changed: 23 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* 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
2+
* 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
33
* https://jquery.com/
44
*
55
* Includes Sizzle.js
@@ -9,7 +9,7 @@
99
* Released under the MIT license
1010
* https://jquery.org/license
1111
*
12-
* Date: 2017-03-16T21:26Z
12+
* Date: 2017-03-20T19:00Z
1313
*/
1414
( function( global, factory ) {
1515

@@ -88,7 +88,7 @@ var support = {};
8888

8989

9090
var
91-
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",
91+
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",
9292

9393
// Define a local copy of jQuery
9494
jQuery = function( selector, context ) {
@@ -5343,11 +5343,9 @@ jQuery.event = {
53435343
},
53445344
click: {
53455345

5346-
// For checkable types, fire native event so checked state will be right
5346+
// For checkbox, fire native event so checked state will be right
53475347
trigger: function() {
5348-
if ( rcheckableType.test( this.type ) &&
5349-
this.click && nodeName( this, "input" ) ) {
5350-
5348+
if ( this.type === "checkbox" && this.click && nodeName( this, "input" ) ) {
53515349
this.click();
53525350
return false;
53535351
}
@@ -6167,6 +6165,11 @@ var getStyles = function( elem ) {
61676165

61686166
function curCSS( elem, name, computed ) {
61696167
var width, minWidth, maxWidth, ret,
6168+
6169+
// Support: Firefox 51+
6170+
// Retrieving style before computed somehow
6171+
// fixes an issue with getting wrong values
6172+
// on detached elements
61706173
style = elem.style;
61716174

61726175
computed = computed || getStyles( elem );
@@ -6355,6 +6358,12 @@ function getWidthOrHeight( elem, name, extra ) {
63556358
valueIsBorderBox = isBorderBox &&
63566359
( support.boxSizingReliable() || val === elem.style[ name ] );
63576360

6361+
// Fall back to offsetWidth/Height when value is "auto"
6362+
// This happens for inline elements with no explicit setting (gh-3571)
6363+
if ( val === "auto" ) {
6364+
val = elem[ "offset" + name[ 0 ].toUpperCase() + name.slice( 1 ) ];
6365+
}
6366+
63586367
// Normalize "", auto, and prepare for extra
63596368
val = parseFloat( val ) || 0;
63606369

@@ -8078,16 +8087,16 @@ jQuery.fn.extend( {
80788087
return arguments.length === 1 ?
80798088
this.off( selector, "**" ) :
80808089
this.off( types, selector || "**", fn );
8081-
},
8082-
holdReady: function( hold ) {
8083-
if ( hold ) {
8084-
jQuery.readyWait++;
8085-
} else {
8086-
jQuery.ready( true );
8087-
}
80888090
}
80898091
} );
80908092

8093+
jQuery.holdReady = function( hold ) {
8094+
if ( hold ) {
8095+
jQuery.readyWait++;
8096+
} else {
8097+
jQuery.ready( true );
8098+
}
8099+
};
80918100
jQuery.isArray = Array.isArray;
80928101
jQuery.parseJSON = JSON.parse;
80938102
jQuery.nodeName = nodeName;

dist/jquery.slim.min.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/jquery.slim.min.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
"name": "jquery",
33
"title": "jQuery",
44
"description": "JavaScript library for DOM operations",
5-
"version": "3.2.0",
5+
"version": "3.2.1",
66
"main": "dist/jquery.js",
77
"homepage": "https://jquery.com",
88
"author": {
99
"name": "JS Foundation and other contributors",
10-
"url": "https://github.com/jquery/jquery/blob/3.2.0/AUTHORS.txt"
10+
"url": "https://github.com/jquery/jquery/blob/3.2.1/AUTHORS.txt"
1111
},
1212
"repository": {
1313
"type": "git",

src/core.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ define( [
2424
"use strict";
2525

2626
var
27-
version = "3.2.0",
27+
version = "3.2.1",
2828

2929
// Define a local copy of jQuery
3030
jQuery = function( selector, context ) {

0 commit comments

Comments
 (0)