]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Clear timeout on destroy. 11496/head
authorAndré Cruz <andremiguelcruz@msn.com>
Fri, 15 Nov 2013 23:33:23 +0000 (23:33 +0000)
committerAndré Cruz <andremiguelcruz@msn.com>
Fri, 15 Nov 2013 23:33:23 +0000 (23:33 +0000)
Clears the internal timeout on destroy so that hanging timers are not fired.

js/tooltip.js

index 9e6177554d9c74060dea10b07efcdd0b0400e194..4ad6f7b31acf98b1ffe4bdf9715c3daf3bb50a66 100644 (file)
   }
 
   Tooltip.prototype.destroy = function () {
+    clearTimeout(this.timeout);
     this.hide().$element.off('.' + this.type).removeData('bs.' + this.type)
   }