mirror of
https://github.com/atom/atom.git
synced 2026-01-26 15:28:27 -05:00
Fixed liniting issues.
This commit is contained in:
@@ -65,14 +65,14 @@ Tooltip.prototype.init = function (element, options) {
|
||||
|
||||
this.hideOnClickOrTypeOutsideOfTooltip = (event) => {
|
||||
if (trigger === 'hover' || trigger === 'click' && event) {
|
||||
const tooltipElement = this.getTooltipElement();
|
||||
if (tooltipElement === event.target) return;
|
||||
if (tooltipElement.contains(event.target)) return;
|
||||
if (this.element === event.target) return;
|
||||
if (this.element.contains(event.target)) return;
|
||||
const tooltipElement = this.getTooltipElement()
|
||||
if (tooltipElement === event.target) return
|
||||
if (tooltipElement.contains(event.target)) return
|
||||
if (this.element === event.target) return
|
||||
if (this.element.contains(event.target)) return
|
||||
this.hide()
|
||||
} else {
|
||||
return;
|
||||
return
|
||||
}
|
||||
}
|
||||
for (var i = triggers.length; i--;) {
|
||||
@@ -185,7 +185,6 @@ Tooltip.prototype.enter = function (event) {
|
||||
}.bind(this), this.options.delay.show)
|
||||
}
|
||||
|
||||
|
||||
Tooltip.prototype.isInStateTrue = function () {
|
||||
for (var key in this.inState) {
|
||||
if (this.inState[key]) return true
|
||||
|
||||
Reference in New Issue
Block a user