💚 Clear CommandRegistry on AtomEnvironment destruction

This commit is contained in:
Antonio Scandurra
2015-10-14 10:11:53 +02:00
parent 57f6fc5772
commit ed201d41cd

View File

@@ -288,11 +288,13 @@ class AtomEnvironment extends Model
destroy: ->
return if not @project
@disposables.dispose()
@workspace?.destroy()
@workspace = null
@themes.workspace = null
@project?.destroy()
@project = null
@commands.clear()
@uninstallWindowEventHandler()