-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixes #23; add deactivate handler and properly handle disposables
- Loading branch information
Showing
1 changed file
with
11 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
e918290
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not use the
CompositeDisposable
class for disposing: http://blog.atom.io/2014/09/16/new-event-subscription-api.htmle918290
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wasn't familiar with it. I haven't been following Atom development much lately, just providing support for this plugin as needed.
e918290
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Current solution works too.
CompositeDisposable
is just an easy to use wrapper around aSet
.e918290
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like a much cleaner way to handle it. I'm going to have to deal with the disposables again probably when merging #24, so it probably makes sense to update to using
CompositeDisposable
then. Thanks!