diff options
| author | André Cruz <[email protected]> | 2013-11-15 23:33:23 +0000 |
|---|---|---|
| committer | André Cruz <[email protected]> | 2013-11-15 23:33:23 +0000 |
| commit | 926b940e8674a7ebeef085af1860a78fcaaf813d (patch) | |
| tree | de1dc719c7b10b3d34e5b398bef60836e2190572 | |
| parent | 7545da2e3c5488b1bcc9c70fecac759232466756 (diff) | |
| download | bootstrap-926b940e8674a7ebeef085af1860a78fcaaf813d.tar.xz bootstrap-926b940e8674a7ebeef085af1860a78fcaaf813d.zip | |
Clear timeout on destroy.
Clears the internal timeout on destroy so that hanging timers are not fired.
| -rw-r--r-- | js/tooltip.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/js/tooltip.js b/js/tooltip.js index 9e6177554..4ad6f7b31 100644 --- a/js/tooltip.js +++ b/js/tooltip.js @@ -352,6 +352,7 @@ } Tooltip.prototype.destroy = function () { + clearTimeout(this.timeout); this.hide().$element.off('.' + this.type).removeData('bs.' + this.type) } |
