Tooltip: clearInterval for delayed tracking tooltips on remove

This is needed in the case that the tooltip is removed before it gets shown.
This commit is contained in:
pallxk 2016-11-12 15:26:47 +08:00
parent d85c68f6cd
commit 611bf44093

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