aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/tooltip.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/js/tooltip.js b/js/tooltip.js
index a954923be..30e3ae140 100644
--- a/js/tooltip.js
+++ b/js/tooltip.js
@@ -249,6 +249,8 @@
var $tip = this.tip()
var e = $.Event('hide.bs.' + this.type)
+ function complete() { $tip.detach() }
+
this.$element.trigger(e)
if (e.isDefaultPrevented()) return
@@ -257,9 +259,9 @@
$.support.transition && this.$tip.hasClass('fade') ?
$tip
- .one($.support.transition.end, $tip.detach)
+ .one($.support.transition.end, complete)
.emulateTransitionEnd(150) :
- $tip.detach()
+ complete()
this.$element.trigger('hidden.bs.' + this.type)