mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Allow destroying AtomEnvironment instances that haven't been initialized
This commit is contained in:
@@ -373,7 +373,7 @@ class AtomEnvironment {
|
||||
if (this.project) this.project.destroy()
|
||||
this.project = null
|
||||
this.commands.clear()
|
||||
this.stylesElement.remove()
|
||||
if (this.stylesElement) this.stylesElement.remove()
|
||||
this.config.unobserveUserConfig()
|
||||
this.autoUpdater.destroy()
|
||||
this.uriHandlerRegistry.destroy()
|
||||
|
||||
Reference in New Issue
Block a user