Skip to content
This repository was archived by the owner on Aug 7, 2023. It is now read-only.

Commit 77e38b8

Browse files
authored
Merge pull request #1019 from AtomLinter/arcanemagus/fix-deprecation
Fix deprecation warning in Atom v1.21.0
2 parents d92a49b + d4751e4 commit 77e38b8

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/main.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,11 +155,9 @@ module.exports = {
155155
// Compares the private component property of the active TextEditor
156156
// against the components of the elements
157157
const evtIsActiveEditor = evt.path.some(elem =>
158-
// Atom v1.19.0
158+
// Atom v1.19.0+
159159
(elem.component && activeEditor.component &&
160-
elem.component === activeEditor.component) ||
161-
// Atom v1.18.0
162-
(activeEditor.editorElement === elem))
160+
elem.component === activeEditor.component))
163161
// Only show if it was the active editor and it is a valid scope
164162
return evtIsActiveEditor && validScope(activeEditor)
165163
}

0 commit comments

Comments
 (0)