mirror of
https://github.com/lxsang/antos-frontend.git
synced 2024-12-26 17:38:20 +01:00
Update BaseModel.ts
This commit is contained in:
parent
b54fdbedf6
commit
c19fc26686
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user