aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorpallxk <github@pallxk.com>2016-11-12 15:26:47 +0800
committerScott González <scott.gonzalez@gmail.com>2016-11-16 12:12:22 -0500
commit9a4c0571577e20795c19796594747f0f8beb476a (patch)
tree4839276b3286514255942aca4c5c7f21bd04a53d /ui
parentd85c68f6cdc02266ab8972e5c4159514b4d2598f (diff)
downloadjquery-ui-9a4c0571577e20795c19796594747f0f8beb476a.tar.gz
jquery-ui-9a4c0571577e20795c19796594747f0f8beb476a.zip
Tooltip: Clear interval for delayed tracking tooltips on remove
This is needed in the case that the tooltip is removed before it gets shown. Fixes #15099 Closes gh-1768
Diffstat (limited to 'ui')
-rw-r--r--ui/widgets/tooltip.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/widgets/tooltip.js b/ui/widgets/tooltip.js
index a8f45bc87..9a3a59063 100644
--- a/ui/widgets/tooltip.js
+++ b/ui/widgets/tooltip.js
@@ -452,6 +452,10 @@ $.widget( "ui.tooltip", {
},
_removeTooltip: function( tooltip ) {
+
+ // Clear the interval for delayed tracking tooltips
+ clearInterval( this.delayedShow );
+
tooltip.remove();
delete this.tooltips[ tooltip.attr( "id" ) ];
},