aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorJacob Thornton <[email protected]>2013-07-31 22:28:05 -0700
committerJacob Thornton <[email protected]>2013-07-31 22:28:05 -0700
commitccd4c9d7b5f90cbbef7f2c9d6b9b3dec615185fc (patch)
tree2c985804be6022dbccc3a4dadb322b68e51b6741 /js
parente9413315b55ec036a6de9846e4fb2fed1f910b7c (diff)
downloadbootstrap-ccd4c9d7b5f90cbbef7f2c9d6b9b3dec615185fc.tar.xz
bootstrap-ccd4c9d7b5f90cbbef7f2c9d6b9b3dec615185fc.zip
fixes #8864
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)