mirror of
https://github.com/lxsang/antos-frontend.git
synced 2024-12-27 09:48:21 +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);
|
const evt = new BaseEvent("exit", force);
|
||||||
this.onexit(evt);
|
this.onexit(evt);
|
||||||
if (!evt.prevent) {
|
if (!evt.prevent) {
|
||||||
this.observable.off("*");
|
if(this.observable)
|
||||||
delete this._observable;
|
{
|
||||||
|
this.observable.off("*");
|
||||||
|
delete this._observable;
|
||||||
|
}
|
||||||
if (this.dialog) {
|
if (this.dialog) {
|
||||||
this.dialog.quit();
|
this.dialog.quit();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user