Commit 926b940e authored by André Cruz's avatar André Cruz

Clear timeout on destroy.

Clears the internal timeout on destroy so that hanging timers are not fired.
parent 7545da2e
...@@ -352,6 +352,7 @@ ...@@ -352,6 +352,7 @@
} }
Tooltip.prototype.destroy = function () { Tooltip.prototype.destroy = function () {
clearTimeout(this.timeout);
this.hide().$element.off('.' + this.type).removeData('bs.' + this.type) this.hide().$element.off('.' + this.type).removeData('bs.' + this.type)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment