Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range here.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also .
base repository: jquery/jquery
Choose a Base Repository
jquery/jquery
AndrewNovikov/jquery
AvinashMudunuri/jquery
ChineseDron/jquery
Colt/jquery
Craga89/jquery
CuoBian/jQuery
DannaB67/jquery
Dannyzn/jquery
DouglasMeyer/jquery
IndiesServices/jquery
JangoSteve/jquery
JungMinu/jquery
MartinMa/jquery
MinchanJun/jquery
MoonScript/jquery
NV/jquery
NandoKstroNet/jquery
OA7/jquery
Phrogz/jquery
Probbaer/jquery
STRd6/jquery
SlexAxton/jquery
VeerababuK/jquery
WilliamHSS/jquery
aakoch/jquery
aburo/jquery
adamdbradley/jquery
adardesign/jquery
addyosmani/jquery-1
agafex2/jquery
ajpiano/jquery
alisonperez/jquery
ambastos/jquery
anthonyernst/jquery
argiope/jquery
arschmitz/jquery
azatoth/jquery
balupton/jquery
barkermn01/jquery
bartb/jquery
batiste/jquery
benjaminjackman/jquery
beverloo/jquery
binhbt/jquery
bskahan/jquery
chokcoco/jquery
christophermoura/jquery
clarke78/jquery
cortextual/jquery
cowboy/jquery
cr0ss/jquery
cscott/jquery
dailiqi/jquery
dalosko/jquery
danyx69/jquery
darrellsilver/jquery
darwin/jquery
deadlyicon/jquery
dieseltravis/jquery
diracdeltas/jquery
djanowski/jquery
dmaffioletti/jquery
dmethvin/jquery
doofius/jquery
dsc/jquery
dstaudigel/jquery-xpcom
dtjm/jquery
dts/jquery-xpcom
dz/jquery
eivindingebrigtsen/jquery
eliotsolomon/jquery
eric-brechemier/jquery
fat/jquery
felix-m/jquery
fitzgen/jquery
foamdino/jquery
fparent/jquery
fracmak/jquery
gf3/jquery
gibson042/jquery
gitfq/jquery
gnarf/jquery
gyongyeee/jquery
halvardos/unamerican-jquery
iammikewilson/jquery
iamnoah/jquery
igorw-forks/jquery
ihab/jquery
iliakan/jquery
ilyakharlamov/jquery-xul
irae/jquery
ishermandom/jquery
jablko/jquery
jclain/jquery
jedzhu/jquery
jhuttner/jquery
jitter/jquery
jmar777/jquery
jollytoad/jquery
jordansissel/jquery
joshbuddy/jquery
joshvarner/jquery
jratlif46/jquery
jrburke/jquery
jryans/jquery
jtaby/jquery
jupiterjs/jquery
justinbmeyer/jquery
jwalsh/jquery
k9ordon/jquery
karbassi/jquery
keichee/jquery
kickgod/jquery
kirbysayshi/jquery-jqd
kpozin/jquery-nodom
krunkosaurus/jquery
kyanny/jquery
kyred/jquery
lambder/jquery
lihuiyang/jquery
lixiaopeng/jquery
lkrause/jquery
louisremi/jquery
marcelinhov2/jquery
marimuthu/jquery
markelog/jquery
mazenslist/jquery
megawolt/jquery
metadings/jquery
mgol/jquery
mhiku/jquery
mikesherov/jquery
miketaylr/jquery
mlins/jquery
mmonteleone/jquery
moizr/jquery
mojombo/jquery
mrdiehl/jquery
neonux/jquery
nje/jquery
nottombrown/jquery
oxromantic/jquery
paddymul/jquery
padolsey/jquery
paulirish/jquery
peterbraden/jquery
philmander/jquery
pilotbe2man/jquery
polotek/jquery
private-face/jquery
quinta2/jquery
quirkey/jquery
ravexx/jquery
razorpay/rQuery
rdworth/jquery
remy/jquery
rherb/jquery
rkatic/jquery
rmurphey/jquery
robinhood-zz/jquery
rpg-scriptum/jquery
rwaldron/jquery
ryanflorence/jquery
ryanseddon/jquery
salty-horse/jquery
satyr/jquery
scalvert/jquery
scottgonzalez/jquery
scottjehl/jquery
servo/jquery
shrage/jquery
sikachu/jquery
skoon/jquery
sl-zz-og/jquery
smelike/jquery
snippt/jquery
songjina/jquery
spencertipping/jquery-patched
spocke/jquery
strg/jquery
swalke16/jquery
technoweenie/jquery
temp01/jquery
theiyer/jquery
therabidbanana/jquery
thetoolman/jquery
timmywil/jquery
trojanspike/jquery
typLAB/jquery
unlox775/jquery
virtix/jquery
xavi-/jquery
xiaodanli/jquery
ya3r/jquery
yaychris/jquery
yunhyosang/jquery
yuni/jquery
zimbatm/jquery
zpao/jquery
Nothing to show
base: 3.4.0
head repository: jquery/jquery
Choose a Head Repository
jquery/jquery
AndrewNovikov/jquery
AvinashMudunuri/jquery
ChineseDron/jquery
Colt/jquery
Craga89/jquery
CuoBian/jQuery
DannaB67/jquery
Dannyzn/jquery
DouglasMeyer/jquery
IndiesServices/jquery
JangoSteve/jquery
JungMinu/jquery
MartinMa/jquery
MinchanJun/jquery
MoonScript/jquery
NV/jquery
NandoKstroNet/jquery
OA7/jquery
Phrogz/jquery
Probbaer/jquery
STRd6/jquery
SlexAxton/jquery
VeerababuK/jquery
WilliamHSS/jquery
aakoch/jquery
aburo/jquery
adamdbradley/jquery
adardesign/jquery
addyosmani/jquery-1
agafex2/jquery
ajpiano/jquery
alisonperez/jquery
ambastos/jquery
anthonyernst/jquery
argiope/jquery
arschmitz/jquery
azatoth/jquery
balupton/jquery
barkermn01/jquery
bartb/jquery
batiste/jquery
benjaminjackman/jquery
beverloo/jquery
binhbt/jquery
bskahan/jquery
chokcoco/jquery
christophermoura/jquery
clarke78/jquery
cortextual/jquery
cowboy/jquery
cr0ss/jquery
cscott/jquery
dailiqi/jquery
dalosko/jquery
danyx69/jquery
darrellsilver/jquery
darwin/jquery
deadlyicon/jquery
dieseltravis/jquery
diracdeltas/jquery
djanowski/jquery
dmaffioletti/jquery
dmethvin/jquery
doofius/jquery
dsc/jquery
dstaudigel/jquery-xpcom
dtjm/jquery
dts/jquery-xpcom
dz/jquery
eivindingebrigtsen/jquery
eliotsolomon/jquery
eric-brechemier/jquery
fat/jquery
felix-m/jquery
fitzgen/jquery
foamdino/jquery
fparent/jquery
fracmak/jquery
gf3/jquery
gibson042/jquery
gitfq/jquery
gnarf/jquery
gyongyeee/jquery
halvardos/unamerican-jquery
iammikewilson/jquery
iamnoah/jquery
igorw-forks/jquery
ihab/jquery
iliakan/jquery
ilyakharlamov/jquery-xul
irae/jquery
ishermandom/jquery
jablko/jquery
jclain/jquery
jedzhu/jquery
jhuttner/jquery
jitter/jquery
jmar777/jquery
jollytoad/jquery
jordansissel/jquery
joshbuddy/jquery
joshvarner/jquery
jratlif46/jquery
jrburke/jquery
jryans/jquery
jtaby/jquery
jupiterjs/jquery
justinbmeyer/jquery
jwalsh/jquery
k9ordon/jquery
karbassi/jquery
keichee/jquery
kickgod/jquery
kirbysayshi/jquery-jqd
kpozin/jquery-nodom
krunkosaurus/jquery
kyanny/jquery
kyred/jquery
lambder/jquery
lihuiyang/jquery
lixiaopeng/jquery
lkrause/jquery
louisremi/jquery
marcelinhov2/jquery
marimuthu/jquery
markelog/jquery
mazenslist/jquery
megawolt/jquery
metadings/jquery
mgol/jquery
mhiku/jquery
mikesherov/jquery
miketaylr/jquery
mlins/jquery
mmonteleone/jquery
moizr/jquery
mojombo/jquery
mrdiehl/jquery
neonux/jquery
nje/jquery
nottombrown/jquery
oxromantic/jquery
paddymul/jquery
padolsey/jquery
paulirish/jquery
peterbraden/jquery
philmander/jquery
pilotbe2man/jquery
polotek/jquery
private-face/jquery
quinta2/jquery
quirkey/jquery
ravexx/jquery
razorpay/rQuery
rdworth/jquery
remy/jquery
rherb/jquery
rkatic/jquery
rmurphey/jquery
robinhood-zz/jquery
rpg-scriptum/jquery
rwaldron/jquery
ryanflorence/jquery
ryanseddon/jquery
salty-horse/jquery
satyr/jquery
scalvert/jquery
scottgonzalez/jquery
scottjehl/jquery
servo/jquery
shrage/jquery
sikachu/jquery
skoon/jquery
sl-zz-og/jquery
smelike/jquery
snippt/jquery
songjina/jquery
spencertipping/jquery-patched
spocke/jquery
strg/jquery
swalke16/jquery
technoweenie/jquery
temp01/jquery
theiyer/jquery
therabidbanana/jquery
thetoolman/jquery
timmywil/jquery
trojanspike/jquery
typLAB/jquery
unlox775/jquery
virtix/jquery
xavi-/jquery
xiaodanli/jquery
ya3r/jquery
yaychris/jquery
yunhyosang/jquery
yuni/jquery
zimbatm/jquery
zpao/jquery
Nothing to show
compare: 3.4.1
@@ -1,10 +1,9 @@
language: node_js
sudo: false
node_js:
- "6"
- "8"
- "10"
- "11"
- "12"
addons:
chrome: stable
env:
@@ -1,5 +1,5 @@
/*!
* jQuery JavaScript Library v3.4.0
* jQuery JavaScript Library v3.4.1
* https://jquery.com/
*
* Includes Sizzle.js
@@ -9,7 +9,7 @@
* Released under the MIT license
* https://jquery.org/license
*
* Date: 2019-04-10T19:48Z
* Date: 2019-05-01T21:04Z
*/
( function( global, factory ) {

@@ -142,7 +142,7 @@ function toType( obj ) {


var
version = "3.4.0",
version = "3.4.1",

// Define a local copy of jQuery
jQuery = function( selector, context ) {
@@ -4498,8 +4498,12 @@ var documentElement = document.documentElement;
},
composed = { composed: true };

// Support: IE 9 - 11+, Edge 12 - 18+, iOS 10.0 - 10.2 only
// Check attachment across shadow DOM boundaries when possible (gh-3504)
if ( documentElement.attachShadow ) {
// Support: iOS 10.0-10.2 only
// Early iOS 10 versions support `attachShadow` but not `getRootNode`,
// leading to errors. We need to check for `getRootNode`.
if ( documentElement.getRootNode ) {
isAttached = function( elem ) {
return jQuery.contains( elem.ownerDocument, elem ) ||
elem.getRootNode( composed ) === elem.ownerDocument;
@@ -5359,8 +5363,7 @@ jQuery.event = {

// Claim the first handler
if ( rcheckableType.test( el.type ) &&
el.click && nodeName( el, "input" ) &&
dataPriv.get( el, "click" ) === undefined ) {
el.click && nodeName( el, "input" ) ) {

// dataPriv.set( el, "click", ... )
leverageNative( el, "click", returnTrue );
@@ -5377,8 +5380,7 @@ jQuery.event = {

// Force setup before triggering a click
if ( rcheckableType.test( el.type ) &&
el.click && nodeName( el, "input" ) &&
dataPriv.get( el, "click" ) === undefined ) {
el.click && nodeName( el, "input" ) ) {

leverageNative( el, "click" );
}
@@ -5419,7 +5421,9 @@ function leverageNative( el, type, expectSync ) {

// Missing expectSync indicates a trigger call, which must force setup through jQuery.event.add
if ( !expectSync ) {
jQuery.event.add( el, type, returnTrue );
if ( dataPriv.get( el, type ) === undefined ) {
jQuery.event.add( el, type, returnTrue );
}
return;
}

@@ -5434,9 +5438,13 @@ function leverageNative( el, type, expectSync ) {
if ( ( event.isTrigger & 1 ) && this[ type ] ) {

// Interrupt processing of the outer synthetic .trigger()ed event
if ( !saved ) {
// Saved data should be false in such cases, but might be a leftover capture object
// from an async native handler (gh-4350)
if ( !saved.length ) {

// Store arguments for use when handling the inner native event
// There will always be at least one argument (an event object), so this array
// will not be confused with a leftover capture object.
saved = slice.call( arguments );
dataPriv.set( this, type, saved );

@@ -5449,14 +5457,14 @@ function leverageNative( el, type, expectSync ) {
if ( saved !== result || notAsync ) {
dataPriv.set( this, type, false );
} else {
result = undefined;
result = {};
}
if ( saved !== result ) {

// Cancel the outer synthetic event
event.stopImmediatePropagation();
event.preventDefault();
return result;
return result.value;
}

// If this is an inner synthetic event for an event with a bubbling surrogate
@@ -5471,17 +5479,19 @@ function leverageNative( el, type, expectSync ) {

// If this is a native event triggered above, everything is now in order
// Fire an inner synthetic event with the original arguments
} else if ( saved ) {
} else if ( saved.length ) {

// ...and capture the result
dataPriv.set( this, type, jQuery.event.trigger(

// Support: IE <=9 - 11+
// Extend with the prototype to reset the above stopImmediatePropagation()
jQuery.extend( saved.shift(), jQuery.Event.prototype ),
saved,
this
) );
dataPriv.set( this, type, {
value: jQuery.event.trigger(

// Support: IE <=9 - 11+
// Extend with the prototype to reset the above stopImmediatePropagation()
jQuery.extend( saved[ 0 ], jQuery.Event.prototype ),
saved.slice( 1 ),
this
)
} );

// Abort handling of the native event
event.stopImmediatePropagation();

Large diffs are not rendered by default.

Large diffs are not rendered by default.

@@ -1,5 +1,5 @@
/*!
* jQuery JavaScript Library v3.4.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.4.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/
*
* Includes Sizzle.js
@@ -9,7 +9,7 @@
* Released under the MIT license
* https://jquery.org/license
*
* Date: 2019-04-10T19:49Z
* Date: 2019-05-01T21:04Z
*/
( function( global, factory ) {

@@ -142,7 +142,7 @@ function toType( obj ) {


var
version = "3.4.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.4.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
jQuery = function( selector, context ) {
@@ -4498,8 +4498,12 @@ var documentElement = document.documentElement;
},
composed = { composed: true };

// Support: IE 9 - 11+, Edge 12 - 18+, iOS 10.0 - 10.2 only
// Check attachment across shadow DOM boundaries when possible (gh-3504)
if ( documentElement.attachShadow ) {
// Support: iOS 10.0-10.2 only
// Early iOS 10 versions support `attachShadow` but not `getRootNode`,
// leading to errors. We need to check for `getRootNode`.
if ( documentElement.getRootNode ) {
isAttached = function( elem ) {
return jQuery.contains( elem.ownerDocument, elem ) ||
elem.getRootNode( composed ) === elem.ownerDocument;
@@ -5359,8 +5363,7 @@ jQuery.event = {

// Claim the first handler
if ( rcheckableType.test( el.type ) &&
el.click && nodeName( el, "input" ) &&
dataPriv.get( el, "click" ) === undefined ) {
el.click && nodeName( el, "input" ) ) {

// dataPriv.set( el, "click", ... )
leverageNative( el, "click", returnTrue );
@@ -5377,8 +5380,7 @@ jQuery.event = {

// Force setup before triggering a click
if ( rcheckableType.test( el.type ) &&
el.click && nodeName( el, "input" ) &&
dataPriv.get( el, "click" ) === undefined ) {
el.click && nodeName( el, "input" ) ) {

leverageNative( el, "click" );
}
@@ -5419,7 +5421,9 @@ function leverageNative( el, type, expectSync ) {

// Missing expectSync indicates a trigger call, which must force setup through jQuery.event.add
if ( !expectSync ) {
jQuery.event.add( el, type, returnTrue );
if ( dataPriv.get( el, type ) === undefined ) {
jQuery.event.add( el, type, returnTrue );
}
return;
}

@@ -5434,9 +5438,13 @@ function leverageNative( el, type, expectSync ) {
if ( ( event.isTrigger & 1 ) && this[ type ] ) {

// Interrupt processing of the outer synthetic .trigger()ed event
if ( !saved ) {
// Saved data should be false in such cases, but might be a leftover capture object
// from an async native handler (gh-4350)
if ( !saved.length ) {

// Store arguments for use when handling the inner native event
// There will always be at least one argument (an event object), so this array
// will not be confused with a leftover capture object.
saved = slice.call( arguments );
dataPriv.set( this, type, saved );

@@ -5449,14 +5457,14 @@ function leverageNative( el, type, expectSync ) {
if ( saved !== result || notAsync ) {
dataPriv.set( this, type, false );
} else {
result = undefined;
result = {};
}
if ( saved !== result ) {

// Cancel the outer synthetic event
event.stopImmediatePropagation();
event.preventDefault();
return result;
return result.value;
}

// If this is an inner synthetic event for an event with a bubbling surrogate
@@ -5471,17 +5479,19 @@ function leverageNative( el, type, expectSync ) {

// If this is a native event triggered above, everything is now in order
// Fire an inner synthetic event with the original arguments
} else if ( saved ) {
} else if ( saved.length ) {

// ...and capture the result
dataPriv.set( this, type, jQuery.event.trigger(

// Support: IE <=9 - 11+
// Extend with the prototype to reset the above stopImmediatePropagation()
jQuery.extend( saved.shift(), jQuery.Event.prototype ),
saved,
this
) );
dataPriv.set( this, type, {
value: jQuery.event.trigger(

// Support: IE <=9 - 11+
// Extend with the prototype to reset the above stopImmediatePropagation()
jQuery.extend( saved[ 0 ], jQuery.Event.prototype ),
saved.slice( 1 ),
this
)
} );

// Abort handling of the native event
event.stopImmediatePropagation();

Large diffs are not rendered by default.

Large diffs are not rendered by default.

@@ -2,12 +2,12 @@
"name": "jquery",
"title": "jQuery",
"description": "JavaScript library for DOM operations",
"version": "3.4.0",
"version": "3.4.1",
"main": "dist/jquery.js",
"homepage": "https://jquery.com",
"author": {
"name": "JS Foundation and other contributors",
"url": "https://github.com/jquery/jquery/blob/3.4.0/AUTHORS.txt"
"url": "https://github.com/jquery/jquery/blob/3.4.1/AUTHORS.txt"
},
"repository": {
"type": "git",
@@ -3,7 +3,12 @@

"extends": "../.eslintrc-browser.json",

"globals": {
"jQuery": true
}
"overrides": [
{
"files": "wrapper.js",
"globals": {
"jQuery": false
}
}
]
}
@@ -27,7 +27,7 @@ define( [
"use strict";

var
version = "3.4.0",
version = "3.4.1",

// Define a local copy of jQuery
jQuery = function( selector, context ) {
@@ -10,8 +10,12 @@ define( [
},
composed = { composed: true };

// Support: IE 9 - 11+, Edge 12 - 18+, iOS 10.0 - 10.2 only
// Check attachment across shadow DOM boundaries when possible (gh-3504)
if ( documentElement.attachShadow ) {
// Support: iOS 10.0-10.2 only
// Early iOS 10 versions support `attachShadow` but not `getRootNode`,
// leading to errors. We need to check for `getRootNode`.
if ( documentElement.getRootNode ) {
isAttached = function( elem ) {
return jQuery.contains( elem.ownerDocument, elem ) ||
elem.getRootNode( composed ) === elem.ownerDocument;
@@ -1,4 +1,7 @@
define( [ "../var/document" ], function( document ) {
define( [
"../var/document",
"../core"
], function( document, jQuery ) {

"use strict";