From 926b940e8674a7ebeef085af1860a78fcaaf813d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20Cruz?= Date: Fri, 15 Nov 2013 23:33:23 +0000 Subject: [PATCH] Clear timeout on destroy. Clears the internal timeout on destroy so that hanging timers are not fired. --- js/tooltip.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/tooltip.js b/js/tooltip.js index 9e6177554d..4ad6f7b31a 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) } -- 2.47.2