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
This commit is contained in:
pallxk 2016-11-12 15:26:47 +08:00 committed by Scott González
parent d85c68f6cd
commit 9a4c057157

View File

@ -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" ) ];
},