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 atom.config.unobserve
Browse files Browse the repository at this point in the history
Closes #18
Closes #24
  • Loading branch information
kevinsawicki committed May 21, 2015
1 parent f6384d1 commit 253a647
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/linter-csslint.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@ class LinterCsslint extends Linter
constructor: (editor)->
super(editor)

atom.config.observe 'linter-csslint.csslintExecutablePath', =>
@configSubscription = atom.config.observe 'linter-csslint.csslintExecutablePath', =>
@executablePath = atom.config.get 'linter-csslint.csslintExecutablePath'

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

module.exports = LinterCsslint

0 comments on commit 253a647

Please sign in to comment.