Skip to content
This repository has been archived by the owner on Oct 19, 2018. It is now read-only.

Remove obsolete conditional re: atom.workspace.observeActiveTextEditor #46

Merged
merged 1 commit into from
Aug 10, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions lib/grammar-status-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,7 @@ export default class GrammarStatusView {
this.grammarLink.classList.add('inline-block')
this.element.appendChild(this.grammarLink)

// TODO[v1.19]: Remove conditional once atom.workspace.observeActiveTextEditor ships in Atom v1.19
if (atom.workspace.observeActiveTextEditor) {
this.activeItemSubscription = atom.workspace.observeActiveTextEditor(this.subscribeToActiveTextEditor.bind(this))
} else {
this.activeItemSubscription = atom.workspace.observeActivePaneItem(this.subscribeToActiveTextEditor.bind(this))
}
this.activeItemSubscription = atom.workspace.observeActiveTextEditor(this.subscribeToActiveTextEditor.bind(this))

this.configSubscription = atom.config.observe('grammar-selector.showOnRightSideOfStatusBar', this.attach.bind(this))
const clickHandler = (event) => {
Expand Down