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:
Nathan Sobo 2014-01-04 10:08:04 -07:00
parent 4ce68fe5d8
commit 0292c66f93

View File

@ -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: ->