Skip to content

Commit da2fbca

Browse files
committed
Tooltip: Use ui-tooltip-open instead of tooltip-open for data key.
(cherry picked from commit 02694a9)
1 parent 25a1de4 commit da2fbca

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ui/jquery.ui.tooltip.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -159,14 +159,14 @@ $.widget( "ui.tooltip", {
159159
target.data( "ui-tooltip-title", target.attr( "title" ) );
160160
}
161161

162-
target.data( "tooltip-open", true );
162+
target.data( "ui-tooltip-open", true );
163163

164164
// kill parent tooltips, custom or native, for hover
165165
if ( event && event.type === "mouseover" ) {
166166
target.parents().each(function() {
167167
var parent = $( this ),
168168
blurEvent;
169-
if ( parent.data( "tooltip-open" ) ) {
169+
if ( parent.data( "ui-tooltip-open" ) ) {
170170
blurEvent = $.Event( "blur" );
171171
blurEvent.target = blurEvent.currentTarget = this;
172172
that.close( blurEvent, true );
@@ -196,7 +196,7 @@ $.widget( "ui.tooltip", {
196196

197197
content = contentOption.call( target[0], function( response ) {
198198
// ignore async response if tooltip was closed already
199-
if ( !target.data( "tooltip-open" ) ) {
199+
if ( !target.data( "ui-tooltip-open" ) ) {
200200
return;
201201
}
202202
// IE may instantly serve a cached response for ajax requests
@@ -325,7 +325,7 @@ $.widget( "ui.tooltip", {
325325
that._removeTooltip( $( this ) );
326326
});
327327

328-
target.removeData( "tooltip-open" );
328+
target.removeData( "ui-tooltip-open" );
329329
this._off( target, "mouseleave focusout keyup" );
330330
// Remove 'remove' binding only on delegated targets
331331
if ( target[0] !== this.element[0] ) {

0 commit comments

Comments
 (0)