Skip to content

Commit 2e654ff

Browse files
committed
Fix tooltip not hide
1 parent a0f623e commit 2e654ff

1 file changed

Lines changed: 8 additions & 10 deletions

File tree

addon/lint/lint.js

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -56,16 +56,14 @@
5656
if (tooltip) { hideTooltip(tooltip); tooltip = null; }
5757
}
5858

59-
if (!cm.state.lint.options.fixedTooltip) {
60-
var poll = setInterval(function() {
61-
if (tooltip) for (var n = node;; n = n.parentNode) {
62-
if (n && n.nodeType == 11) n = n.host;
63-
if (n == document.body) return;
64-
if (!n) { hide(); break; }
65-
}
66-
if (!tooltip) return clearInterval(poll);
67-
}, 400);
68-
}
59+
var poll = setInterval(function() {
60+
if (tooltip) for (var n = node;; n = n.parentNode) {
61+
if (n && n.nodeType == 11) n = n.host;
62+
if (n == document.body) return;
63+
if (!n) { hide(); break; }
64+
}
65+
if (!tooltip) return clearInterval(poll);
66+
}, 400);
6967

7068
CodeMirror.on(node, "mouseout", hide);
7169
}

0 commit comments

Comments
 (0)