This commit is contained in:
Philipp Kühn
2020-03-31 13:07:57 +02:00
parent d869847da1
commit 19adfe3a6c

View File

@@ -228,11 +228,10 @@ export class Editor extends EventEmitter {
} }
public destroy() { public destroy() {
if (!this.view) { if (this.view) {
return this.view.destroy()
} }
this.view.destroy()
this.removeAllListeners() this.removeAllListeners()
removeElement(this.css) removeElement(this.css)
} }