mirror of
https://github.com/twbs/bootstrap.git
synced 2025-07-31 02:40:26 +02:00
Clear timeout on destroy.
Clears the internal timeout on destroy so that hanging timers are not fired.
This commit is contained in:
@@ -352,6 +352,7 @@
|
||||
}
|
||||
|
||||
Tooltip.prototype.destroy = function () {
|
||||
clearTimeout(this.timeout);
|
||||
this.hide().$element.off('.' + this.type).removeData('bs.' + this.type)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user