From: André Cruz Date: Fri, 15 Nov 2013 23:33:23 +0000 (+0000) Subject: Clear timeout on destroy. X-Git-Tag: v3.1.0~136^2~8^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=926b940e8674a7ebeef085af1860a78fcaaf813d;p=thirdparty%2Fbootstrap.git Clear timeout on destroy. Clears the internal timeout on destroy so that hanging timers are not fired. --- 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) }