0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-02-19 16:54:24 +01:00

Clear timeout on destroy.

Clears the internal timeout on destroy so that hanging timers are not fired.
This commit is contained in:
André Cruz 2013-11-15 23:33:23 +00:00
parent 7545da2e3c
commit 926b940e86

View File

@ -352,6 +352,7 @@
}
Tooltip.prototype.destroy = function () {
clearTimeout(this.timeout);
this.hide().$element.off('.' + this.type).removeData('bs.' + this.type)
}