aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--js/tooltip.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/js/tooltip.js b/js/tooltip.js
index 27367880f..789d04f7a 100644
--- a/js/tooltip.js
+++ b/js/tooltip.js
@@ -440,6 +440,12 @@
clearTimeout(this.timeout)
this.hide(function () {
that.$element.off('.' + that.type).removeData('bs.' + that.type)
+ if (that.$tip) {
+ that.$tip.detach()
+ }
+ that.$tip = null
+ that.$arrow = null
+ that.$viewport = null
})
}