aboutsummaryrefslogtreecommitdiff
path: root/dist/js/bootstrap.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 /dist/js/bootstrap.js
parente9413315b55ec036a6de9846e4fb2fed1f910b7c (diff)
downloadbootstrap-ccd4c9d7b5f90cbbef7f2c9d6b9b3dec615185fc.tar.xz
bootstrap-ccd4c9d7b5f90cbbef7f2c9d6b9b3dec615185fc.zip
fixes #8864
Diffstat (limited to 'dist/js/bootstrap.js')
-rw-r--r--dist/js/bootstrap.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/dist/js/bootstrap.js b/dist/js/bootstrap.js
index a200e1589..bda74821b 100644
--- a/dist/js/bootstrap.js
+++ b/dist/js/bootstrap.js
@@ -1313,6 +1313,8 @@ if (!jQuery) { throw new Error("Bootstrap requires jQuery") }
var $tip = this.tip()
var e = $.Event('hide.bs.' + this.type)
+ function complete() { $tip.detach() }
+
this.$element.trigger(e)
if (e.isDefaultPrevented()) return
@@ -1321,9 +1323,9 @@ if (!jQuery) { throw new Error("Bootstrap requires jQuery") }
$.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)