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() {
if (!this.view) {
return
if (this.view) {
this.view.destroy()
}
this.view.destroy()
this.removeAllListeners()
removeElement(this.css)
}