mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-20 23:48:05 +03:00
Don't drop editor subscriptions in its destroyed hook
Unsubscribing should be the responsibility of the subscribers and doing this was removing 'destroyed' subscriptions before the 'destroyed' event was emitted now that 'destroyed' is emitted by the default Model::destroy method.
This commit is contained in:
parent
4ce68fe5d8
commit
0292c66f93
@ -124,7 +124,6 @@ class Editor extends Model
|
||||
@displayBuffer.destroy()
|
||||
@languageMode.destroy()
|
||||
atom.project?.removeEditor(this)
|
||||
@off()
|
||||
|
||||
# Private: Creates an {Editor} with the same initial state
|
||||
copy: ->
|
||||
|
Loading…
Reference in New Issue
Block a user