aboutsummaryrefslogtreecommitdiff
path: root/js/tooltip.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/tooltip.js')
-rw-r--r--js/tooltip.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/js/tooltip.js b/js/tooltip.js
index 08d22971f..6af0e7d72 100644
--- a/js/tooltip.js
+++ b/js/tooltip.js
@@ -207,8 +207,11 @@
this.applyPlacement(calculatedOffset, placement)
var complete = function () {
+ var prevHoverState = that.hoverState
that.$element.trigger('shown.bs.' + that.type)
that.hoverState = null
+
+ if (prevHoverState == 'out') that.leave(that)
}
$.support.transition && this.$tip.hasClass('fade') ?