Commit cf492476 authored by Jacob Thornton's avatar Jacob Thornton

rebuild with tooltip formatting change

parent 19469aa5
...@@ -72,34 +72,26 @@ ...@@ -72,34 +72,26 @@
, enter: function (e) { , enter: function (e) {
var self = $(e.currentTarget)[this.type](this._options).data(this.type) var self = $(e.currentTarget)[this.type](this._options).data(this.type)
if (!self.options.delay || !self.options.delay.show) { if (!self.options.delay || !self.options.delay.show) return self.show()
self.show()
} else {
clearTimeout(this.timeout) clearTimeout(this.timeout)
self.hoverState = 'in' self.hoverState = 'in'
this.timeout = setTimeout(function() { this.timeout = setTimeout(function() {
if (self.hoverState == 'in') { if (self.hoverState == 'in') self.show()
self.show()
}
}, self.options.delay.show) }, self.options.delay.show)
} }
}
, leave: function (e) { , leave: function (e) {
var self = $(e.currentTarget)[this.type](this._options).data(this.type) var self = $(e.currentTarget)[this.type](this._options).data(this.type)
if (!self.options.delay || !self.options.delay.hide) { if (!self.options.delay || !self.options.delay.hide) return self.hide()
self.hide()
} else {
clearTimeout(this.timeout) clearTimeout(this.timeout)
self.hoverState = 'out' self.hoverState = 'out'
this.timeout = setTimeout(function() { this.timeout = setTimeout(function() {
if (self.hoverState == 'out') { if (self.hoverState == 'out') self.hide()
self.hide()
}
}, self.options.delay.hide) }, self.options.delay.hide)
} }
}
, show: function () { , show: function () {
var $tip var $tip
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment