aboutsummaryrefslogtreecommitdiff
path: root/js/tooltip.js
diff options
context:
space:
mode:
authorJacob Thornton <[email protected]>2013-07-24 20:10:16 -0700
committerJacob Thornton <[email protected]>2013-07-24 20:10:16 -0700
commiteaefed517a960893204cade3525bda100454e13f (patch)
tree6227f06e1e88cd0321975a43a9b9cc9dbd9e5138 /js/tooltip.js
parent930c75e5dd0f2ae861a505bda740f289570c9b8a (diff)
downloadbootstrap-eaefed517a960893204cade3525bda100454e13f.tar.xz
bootstrap-eaefed517a960893204cade3525bda100454e13f.zip
fixes #8399 w/ tests
Diffstat (limited to 'js/tooltip.js')
-rw-r--r--js/tooltip.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/tooltip.js b/js/tooltip.js
index 7e3fa8098..897a44517 100644
--- a/js/tooltip.js
+++ b/js/tooltip.js
@@ -102,10 +102,10 @@
var self = obj instanceof this.constructor ?
obj : $(obj.currentTarget)[this.type](options).data('bs.' + this.type)
- if (!self.options.delay || !self.options.delay.show) return self.show()
-
clearTimeout(self.timeout)
+ if (!self.options.delay || !self.options.delay.show) return self.show()
+
self.hoverState = 'in'
self.timeout = setTimeout(function () {
if (self.hoverState == 'in') self.show()