aboutsummaryrefslogtreecommitdiff
path: root/js/tooltip.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/tooltip.js')
-rw-r--r--js/tooltip.js15
1 files changed, 3 insertions, 12 deletions
diff --git a/js/tooltip.js b/js/tooltip.js
index 1f84b5cf5..f8ba0aacb 100644
--- a/js/tooltip.js
+++ b/js/tooltip.js
@@ -238,19 +238,10 @@
$tip.removeClass('in')
- function removeWithAnimation() {
- var timeout = setTimeout(function () {
- $tip.off($.support.transition.end).detach()
- }, 500)
-
- $tip.one($.support.transition.end, function () {
- clearTimeout(timeout)
- $tip.detach()
- })
- }
-
$.support.transition && this.$tip.hasClass('fade') ?
- removeWithAnimation() :
+ $tip
+ .one($.support.transition.end, $tip.detach)
+ .emulateTransitionEnd(150) :
$tip.detach()
this.$element.trigger('hidden.bs.' + this.type)