mirror of
https://github.com/atom/atom.git
synced 2026-01-22 13:28:01 -05:00
Unsubscribe from buffer when destroyed
This commit is contained in:
@@ -80,6 +80,7 @@ class Git
|
||||
@getPathStatus(path)
|
||||
@subscribe buffer, 'saved', bufferStatusHandler
|
||||
@subscribe buffer, 'reloaded', bufferStatusHandler
|
||||
@subscribe buffer, 'destroyed', => @unsubscribe(buffer)
|
||||
|
||||
# Public: Destroy this `Git` object. This destroys any tasks and
|
||||
# subscriptions and releases the underlying libgit2 repository handle.
|
||||
|
||||
Reference in New Issue
Block a user