mirror of
https://github.com/lxsang/antos-frontend.git
synced 2025-07-18 06:49:47 +02:00
Update BaseModel.ts
This commit is contained in:
@ -342,8 +342,11 @@ namespace OS {
|
||||
const evt = new BaseEvent("exit", force);
|
||||
this.onexit(evt);
|
||||
if (!evt.prevent) {
|
||||
this.observable.off("*");
|
||||
delete this._observable;
|
||||
if(this.observable)
|
||||
{
|
||||
this.observable.off("*");
|
||||
delete this._observable;
|
||||
}
|
||||
if (this.dialog) {
|
||||
this.dialog.quit();
|
||||
}
|
||||
|
Reference in New Issue
Block a user