mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Dispose emitter after emitting did-destroy
This commit is contained in:
@@ -172,6 +172,7 @@ class Editor extends Model
|
||||
@displayBuffer.destroy()
|
||||
@languageMode.destroy()
|
||||
@emitter.emit 'did-destroy'
|
||||
@emitter.dispose()
|
||||
|
||||
###
|
||||
Section: Event Subscription
|
||||
|
||||
@@ -518,6 +518,7 @@ class Pane extends Model
|
||||
destroyed: ->
|
||||
@container.activateNextPane() if @isActive()
|
||||
@emitter.emit 'did-destroy'
|
||||
@emitter.dispose()
|
||||
item.destroy?() for item in @items.slice()
|
||||
|
||||
###
|
||||
|
||||
Reference in New Issue
Block a user