From 6841c5096888b9a1f8b4b9453adac23cee3788d9 Mon Sep 17 00:00:00 2001 From: Jacob Thornton Date: Tue, 23 Jul 2013 22:58:14 -0700 Subject: fixes #7814 --- js/tooltip.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'js') 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) } -- cgit v1.2.3