diff options
author | Jacob Thornton <jacobthornton@gmail.com> | 2012-03-22 08:57:06 +0400 |
---|---|---|
committer | Jacob Thornton <jacobthornton@gmail.com> | 2012-03-22 08:57:06 +0400 |
commit | 94b24aaa473755093677cb4eb80faf3daee53357 (patch) | |
tree | 43bbec6a31bdcba10a30b4a10a8bcb507321c245 /docs/assets/js/bootstrap-tooltip.js | |
parent | 22963d73467a604b845dbebc03c9b8fa16ba2e23 (diff) |
clear timeout to reset delays for tooltip/popover
Diffstat (limited to 'docs/assets/js/bootstrap-tooltip.js')
-rw-r--r-- | docs/assets/js/bootstrap-tooltip.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/docs/assets/js/bootstrap-tooltip.js b/docs/assets/js/bootstrap-tooltip.js index 2b5f146b13..7d58a6c8d2 100644 --- a/docs/assets/js/bootstrap-tooltip.js +++ b/docs/assets/js/bootstrap-tooltip.js @@ -73,8 +73,9 @@ if (!self.options.delay || !self.options.delay.show) { self.show() } else { + clearTimeout(this.timeout) self.hoverState = 'in' - setTimeout(function() { + this.timeout = setTimeout(function() { if (self.hoverState == 'in') { self.show() } @@ -88,8 +89,9 @@ if (!self.options.delay || !self.options.delay.hide) { self.hide() } else { + clearTimeout(this.timeout) self.hoverState = 'out' - setTimeout(function() { + this.timeout = setTimeout(function() { if (self.hoverState == 'out') { self.hide() } |