mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2025-01-01 03:03:09 +03:00
Unsubscribe from buffer when destroyed
This commit is contained in:
parent
1c357f9b65
commit
03964ff568
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user