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

Commit

Permalink
Merge pull request #27 from atom/wl-dispose
Browse files Browse the repository at this point in the history
Don't forget to dispose commands
  • Loading branch information
50Wliu committed Nov 14, 2017
2 parents bc66c98 + 7944d85 commit 226b9b9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/link.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ let selector = null

module.exports = {
activate () {
atom.commands.add('atom-workspace', 'link:open', () => this.openLink())
this.commandDisposable = atom.commands.add('atom-workspace', 'link:open', () => this.openLink())
},

deactivate () {
this.commandDisposable.dispose()
},

openLink () {
Expand Down

0 comments on commit 226b9b9

Please sign in to comment.