From 9a4c0571577e20795c19796594747f0f8beb476a Mon Sep 17 00:00:00 2001 From: pallxk Date: Sat, 12 Nov 2016 15:26:47 +0800 Subject: [PATCH] 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 --- ui/widgets/tooltip.js | 4 ++++ 1 file changed, 4 insertions(+) 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" ) ]; }, -- 2.39.5