mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 20:33:32 +08:00
fix(nav): move null assignment of _onWillDismiss
This commit is contained in:
@ -179,6 +179,7 @@ export class ViewController {
|
|||||||
this._onWillDismiss && this._onWillDismiss(data, role);
|
this._onWillDismiss && this._onWillDismiss(data, role);
|
||||||
return this._nav.remove(this._nav.indexOf(this), 1, options).then(() => {
|
return this._nav.remove(this._nav.indexOf(this), 1, options).then(() => {
|
||||||
this._onDidDismiss && this._onDidDismiss(data, role);
|
this._onDidDismiss && this._onDidDismiss(data, role);
|
||||||
|
this._onWillDismiss = null;
|
||||||
return data;
|
return data;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -514,7 +515,7 @@ export class ViewController {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this._nav = this._cmp = this.instance = this._cntDir = this._cntRef = this._hdrDir = this._ftrDir = this._nb = this._onDidDismiss = this._onWillDismiss = null;
|
this._nav = this._cmp = this.instance = this._cntDir = this._cntRef = this._hdrDir = this._ftrDir = this._nb = this._onDidDismiss = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user