Skip to content

Commit

Permalink
Tooltip: Clear interval for delayed tracking tooltips on remove
Browse files Browse the repository at this point in the history
This is needed in the case that the tooltip is removed before it gets shown.

Fixes #15099
Closes gh-1768
  • Loading branch information
pallxk authored and scottgonzalez committed Nov 16, 2016
1 parent d85c68f commit 9a4c057
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ui/widgets/tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -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" ) ];
},
Expand Down

0 comments on commit 9a4c057

Please sign in to comment.