fix
This commit is contained in:
@@ -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)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user