--- a/wp/wp-includes/js/jquery/ui/tooltip.js Wed Sep 21 18:19:35 2022 +0200
+++ b/wp/wp-includes/js/jquery/ui/tooltip.js Tue Sep 27 16:37:53 2022 +0200
@@ -1,5 +1,5 @@
/*!
- * jQuery UI Tooltip 1.12.1
+ * jQuery UI Tooltip 1.13.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
@@ -17,6 +17,8 @@
//>>css.theme: ../../themes/base/theme.css
( function( factory ) {
+ "use strict";
+
if ( typeof define === "function" && define.amd ) {
// AMD. Register as an anonymous module.
@@ -29,19 +31,17 @@
// Browser globals
factory( jQuery );
}
-}( function( $ ) {
+} )( function( $ ) {
+"use strict";
$.widget( "ui.tooltip", {
- version: "1.12.1",
+ version: "1.13.1",
options: {
classes: {
"ui-tooltip": "ui-corner-all ui-widget-shadow"
},
content: function() {
-
- // support: IE<9, Opera in jQuery <1.7
- // .text() can't accept undefined, so coerce to a string
- var title = $( this ).attr( "title" ) || "";
+ var title = $( this ).attr( "title" );
// Escape title, since we're going from an attribute to raw HTML
return $( "<a>" ).text( title ).html();
@@ -68,7 +68,7 @@
describedby.push( id );
elem
.data( "ui-tooltip-id", id )
- .attr( "aria-describedby", $.trim( describedby.join( " " ) ) );
+ .attr( "aria-describedby", String.prototype.trim.call( describedby.join( " " ) ) );
},
_removeDescribedBy: function( elem ) {
@@ -81,7 +81,7 @@
}
elem.removeData( "ui-tooltip-id" );
- describedby = $.trim( describedby.join( " " ) );
+ describedby = String.prototype.trim.call( describedby.join( " " ) );
if ( describedby ) {
elem.attr( "aria-describedby", describedby );
} else {
@@ -217,7 +217,7 @@
eventType = event ? event.type : null;
if ( typeof contentOption === "string" || contentOption.nodeType ||
- contentOption.jquery ) {
+ contentOption.jquery ) {
return this._open( event, target, contentOption );
}
@@ -327,7 +327,7 @@
position( positionOption.of );
clearInterval( delayedShow );
}
- }, $.fx.interval );
+ }, 13 );
}
this._trigger( "open", event, { tooltip: tooltip } );
@@ -348,7 +348,10 @@
// tooltips will handle this in destroy.
if ( target[ 0 ] !== this.element[ 0 ] ) {
events.remove = function() {
- this._removeTooltip( this._find( target ).tooltip );
+ var targetElement = this._find( target );
+ if ( targetElement ) {
+ this._removeTooltip( targetElement.tooltip );
+ }
};
}
@@ -448,6 +451,10 @@
},
_removeTooltip: function( tooltip ) {
+
+ // Clear the interval for delayed tracking tooltips
+ clearInterval( this.delayedShow );
+
tooltip.remove();
delete this.tooltips[ tooltip.attr( "id" ) ];
},
@@ -513,4 +520,4 @@
return $.ui.tooltip;
-} ) );
+} );