mirror of
https://github.com/rails/jquery-rails.git
synced 2026-01-09 22:57:55 -05:00
Update jquery to v3.7.1 (#305)
https://blog.jquery.com/2023/08/28/jquery-3-7-1-released-reliable-table-row-dimensions/ Closes #300 Closes #302
This commit is contained in:
committed by
GitHub
parent
12869dac3f
commit
039b12e91c
@@ -1,5 +1,7 @@
|
|||||||
## unreleased
|
## unreleased
|
||||||
|
|
||||||
|
- update jquery to 3.7.1
|
||||||
|
|
||||||
## 4.6.0
|
## 4.6.0
|
||||||
|
|
||||||
- update jquery to 3.7.0
|
- update jquery to 3.7.0
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ module Jquery
|
|||||||
VERSION = "4.6.0"
|
VERSION = "4.6.0"
|
||||||
JQUERY_VERSION = "1.12.4"
|
JQUERY_VERSION = "1.12.4"
|
||||||
JQUERY_2_VERSION = "2.2.4"
|
JQUERY_2_VERSION = "2.2.4"
|
||||||
JQUERY_3_VERSION = "3.7.0"
|
JQUERY_3_VERSION = "3.7.1"
|
||||||
JQUERY_UJS_VERSION = "1.2.3"
|
JQUERY_UJS_VERSION = "1.2.3"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
48
vendor/assets/javascripts/jquery3.js
vendored
48
vendor/assets/javascripts/jquery3.js
vendored
@@ -1,12 +1,12 @@
|
|||||||
/*!
|
/*!
|
||||||
* jQuery JavaScript Library v3.7.0
|
* jQuery JavaScript Library v3.7.1
|
||||||
* https://jquery.com/
|
* https://jquery.com/
|
||||||
*
|
*
|
||||||
* Copyright OpenJS Foundation and other contributors
|
* Copyright OpenJS Foundation and other contributors
|
||||||
* Released under the MIT license
|
* Released under the MIT license
|
||||||
* https://jquery.org/license
|
* https://jquery.org/license
|
||||||
*
|
*
|
||||||
* Date: 2023-05-11T18:29Z
|
* Date: 2023-08-28T13:37Z
|
||||||
*/
|
*/
|
||||||
( function( global, factory ) {
|
( function( global, factory ) {
|
||||||
|
|
||||||
@@ -147,7 +147,7 @@ function toType( obj ) {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
var version = "3.7.0",
|
var version = "3.7.1",
|
||||||
|
|
||||||
rhtmlSuffix = /HTML$/i,
|
rhtmlSuffix = /HTML$/i,
|
||||||
|
|
||||||
@@ -411,9 +411,14 @@ jQuery.extend( {
|
|||||||
// Do not traverse comment nodes
|
// Do not traverse comment nodes
|
||||||
ret += jQuery.text( node );
|
ret += jQuery.text( node );
|
||||||
}
|
}
|
||||||
} else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) {
|
}
|
||||||
|
if ( nodeType === 1 || nodeType === 11 ) {
|
||||||
return elem.textContent;
|
return elem.textContent;
|
||||||
} else if ( nodeType === 3 || nodeType === 4 ) {
|
}
|
||||||
|
if ( nodeType === 9 ) {
|
||||||
|
return elem.documentElement.textContent;
|
||||||
|
}
|
||||||
|
if ( nodeType === 3 || nodeType === 4 ) {
|
||||||
return elem.nodeValue;
|
return elem.nodeValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1126,12 +1131,17 @@ function setDocument( node ) {
|
|||||||
documentElement.msMatchesSelector;
|
documentElement.msMatchesSelector;
|
||||||
|
|
||||||
// Support: IE 9 - 11+, Edge 12 - 18+
|
// Support: IE 9 - 11+, Edge 12 - 18+
|
||||||
// Accessing iframe documents after unload throws "permission denied" errors (see trac-13936)
|
// Accessing iframe documents after unload throws "permission denied" errors
|
||||||
// Support: IE 11+, Edge 17 - 18+
|
// (see trac-13936).
|
||||||
// IE/Edge sometimes throw a "Permission denied" error when strict-comparing
|
// Limit the fix to IE & Edge Legacy; despite Edge 15+ implementing `matches`,
|
||||||
// two documents; shallow comparisons work.
|
// all IE 9+ and Edge Legacy versions implement `msMatchesSelector` as well.
|
||||||
// eslint-disable-next-line eqeqeq
|
if ( documentElement.msMatchesSelector &&
|
||||||
if ( preferredDoc != document &&
|
|
||||||
|
// Support: IE 11+, Edge 17 - 18+
|
||||||
|
// IE/Edge sometimes throw a "Permission denied" error when strict-comparing
|
||||||
|
// two documents; shallow comparisons work.
|
||||||
|
// eslint-disable-next-line eqeqeq
|
||||||
|
preferredDoc != document &&
|
||||||
( subWindow = document.defaultView ) && subWindow.top !== subWindow ) {
|
( subWindow = document.defaultView ) && subWindow.top !== subWindow ) {
|
||||||
|
|
||||||
// Support: IE 9 - 11+, Edge 12 - 18+
|
// Support: IE 9 - 11+, Edge 12 - 18+
|
||||||
@@ -2694,12 +2704,12 @@ jQuery.find = find;
|
|||||||
jQuery.expr[ ":" ] = jQuery.expr.pseudos;
|
jQuery.expr[ ":" ] = jQuery.expr.pseudos;
|
||||||
jQuery.unique = jQuery.uniqueSort;
|
jQuery.unique = jQuery.uniqueSort;
|
||||||
|
|
||||||
// These have always been private, but they used to be documented
|
// These have always been private, but they used to be documented as part of
|
||||||
// as part of Sizzle so let's maintain them in the 3.x line
|
// Sizzle so let's maintain them for now for backwards compatibility purposes.
|
||||||
// for backwards compatibility purposes.
|
|
||||||
find.compile = compile;
|
find.compile = compile;
|
||||||
find.select = select;
|
find.select = select;
|
||||||
find.setDocument = setDocument;
|
find.setDocument = setDocument;
|
||||||
|
find.tokenize = tokenize;
|
||||||
|
|
||||||
find.escape = jQuery.escapeSelector;
|
find.escape = jQuery.escapeSelector;
|
||||||
find.getText = jQuery.text;
|
find.getText = jQuery.text;
|
||||||
@@ -5913,7 +5923,7 @@ function domManip( collection, args, callback, ignored ) {
|
|||||||
if ( hasScripts ) {
|
if ( hasScripts ) {
|
||||||
doc = scripts[ scripts.length - 1 ].ownerDocument;
|
doc = scripts[ scripts.length - 1 ].ownerDocument;
|
||||||
|
|
||||||
// Reenable scripts
|
// Re-enable scripts
|
||||||
jQuery.map( scripts, restoreScript );
|
jQuery.map( scripts, restoreScript );
|
||||||
|
|
||||||
// Evaluate executable scripts on first document insertion
|
// Evaluate executable scripts on first document insertion
|
||||||
@@ -6370,7 +6380,7 @@ var rboxStyle = new RegExp( cssExpand.join( "|" ), "i" );
|
|||||||
trChild = document.createElement( "div" );
|
trChild = document.createElement( "div" );
|
||||||
|
|
||||||
table.style.cssText = "position:absolute;left:-11111px;border-collapse:separate";
|
table.style.cssText = "position:absolute;left:-11111px;border-collapse:separate";
|
||||||
tr.style.cssText = "border:1px solid";
|
tr.style.cssText = "box-sizing:content-box;border:1px solid";
|
||||||
|
|
||||||
// Support: Chrome 86+
|
// Support: Chrome 86+
|
||||||
// Height set through cssText does not get applied.
|
// Height set through cssText does not get applied.
|
||||||
@@ -6382,7 +6392,7 @@ var rboxStyle = new RegExp( cssExpand.join( "|" ), "i" );
|
|||||||
// In our bodyBackground.html iframe,
|
// In our bodyBackground.html iframe,
|
||||||
// display for all div elements is set to "inline",
|
// display for all div elements is set to "inline",
|
||||||
// which causes a problem only in Android 8 Chrome 86.
|
// which causes a problem only in Android 8 Chrome 86.
|
||||||
// Ensuring the div is display: block
|
// Ensuring the div is `display: block`
|
||||||
// gets around this issue.
|
// gets around this issue.
|
||||||
trChild.style.display = "block";
|
trChild.style.display = "block";
|
||||||
|
|
||||||
@@ -10550,7 +10560,9 @@ jQuery.fn.extend( {
|
|||||||
},
|
},
|
||||||
|
|
||||||
hover: function( fnOver, fnOut ) {
|
hover: function( fnOver, fnOut ) {
|
||||||
return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver );
|
return this
|
||||||
|
.on( "mouseenter", fnOver )
|
||||||
|
.on( "mouseleave", fnOut || fnOver );
|
||||||
}
|
}
|
||||||
} );
|
} );
|
||||||
|
|
||||||
|
|||||||
4
vendor/assets/javascripts/jquery3.min.js
vendored
4
vendor/assets/javascripts/jquery3.min.js
vendored
File diff suppressed because one or more lines are too long
2
vendor/assets/javascripts/jquery3.min.map
vendored
2
vendor/assets/javascripts/jquery3.min.map
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user