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

Commit

Permalink
Don't use deprecated atom.config.unobserve
Browse files Browse the repository at this point in the history
Closes #17
  • Loading branch information
kevinsawicki committed May 22, 2015
1 parent 67b14b5 commit f27849e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/linter-javac.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,12 @@ class LinterJavac extends Linter
constructor: (editor) ->
super(editor)

atom.config.observe 'linter-javac.javaExecutablePath', =>
@configSubscription = atom.config.observe 'linter-javac.javaExecutablePath', =>
@executablePath = atom.config.get 'linter-javac.javaExecutablePath'

destroy: ->
atom.config.unobserve 'linter-javac.javaExecutablePath'
super
@configSubscription.dispose()

errorStream: 'stderr'

Expand Down

0 comments on commit f27849e

Please sign in to comment.