aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrĂ© Cruz <[email protected]>2013-11-15 23:33:23 +0000
committerAndrĂ© Cruz <[email protected]>2013-11-15 23:33:23 +0000
commit926b940e8674a7ebeef085af1860a78fcaaf813d (patch)
treede1dc719c7b10b3d34e5b398bef60836e2190572
parent7545da2e3c5488b1bcc9c70fecac759232466756 (diff)
downloadbootstrap-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.js1
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)
}