aboutsummaryrefslogtreecommitdiffstats
path: root/ui/tooltip.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/tooltip.js')
-rw-r--r--ui/tooltip.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/ui/tooltip.js b/ui/tooltip.js
index 52be04dcb..048b6324a 100644
--- a/ui/tooltip.js
+++ b/ui/tooltip.js
@@ -296,6 +296,8 @@ return $.widget( "ui.tooltip", {
}, this.options.position ) );
}
+ this.hiding = false;
+ this.closing = false;
tooltip.hide();
this._show( tooltip, this.options.show );
@@ -362,9 +364,12 @@ return $.widget( "ui.tooltip", {
this._removeDescribedBy( target );
+ this.hiding = true;
tooltip.stop( true );
this._hide( tooltip, this.options.hide, function() {
that._removeTooltip( $( this ) );
+ this.hiding = false;
+ this.closing = false;
});
target.removeData( "ui-tooltip-open" );
@@ -385,7 +390,9 @@ return $.widget( "ui.tooltip", {
this.closing = true;
this._trigger( "close", event, { tooltip: tooltip } );
- this.closing = false;
+ if ( !this.hiding ) {
+ this.closing = false;
+ }
},
_tooltip: function( element ) {