diff options
| author | Jacob Thornton <[email protected]> | 2013-07-23 22:58:14 -0700 |
|---|---|---|
| committer | Jacob Thornton <[email protected]> | 2013-07-23 22:59:09 -0700 |
| commit | 6841c5096888b9a1f8b4b9453adac23cee3788d9 (patch) | |
| tree | c992642885c2880d52d38a675f116609e5a2975b /js | |
| parent | faba6808b7713e8ab72ae5f21eedb3736a5b45ea (diff) | |
| download | bootstrap-6841c5096888b9a1f8b4b9453adac23cee3788d9.tar.xz bootstrap-6841c5096888b9a1f8b4b9453adac23cee3788d9.zip | |
fixes #7814
Diffstat (limited to 'js')
| -rw-r--r-- | js/tooltip.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/js/tooltip.js b/js/tooltip.js index f8ba0aacb..102550594 100644 --- a/js/tooltip.js +++ b/js/tooltip.js @@ -104,10 +104,10 @@ if (!self.options.delay || !self.options.delay.show) return self.show() - clearTimeout(this.timeout) + clearTimeout(self.timeout) self.hoverState = 'in' - this.timeout = setTimeout(function () { + self.timeout = setTimeout(function () { if (self.hoverState == 'in') self.show() }, self.options.delay.show) } @@ -116,12 +116,12 @@ var self = obj instanceof this.constructor ? obj : $(obj.currentTarget)[this.type](this._options).data('bs.' + this.type) - clearTimeout(this.timeout) + clearTimeout(self.timeout) if (!self.options.delay || !self.options.delay.hide) return self.hide() self.hoverState = 'out' - this.timeout = setTimeout(function () { + self.timeout = setTimeout(function () { if (self.hoverState == 'out') self.hide() }, self.options.delay.hide) } |
