mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 04:14:21 +08:00
perf(nav): avoid running zone when it is not needed
This commit is contained in:
@ -179,7 +179,7 @@ export class ViewController {
|
||||
|
||||
let options = assign({}, this._leavingOpts, navOptions);
|
||||
this._onWillDismiss && this._onWillDismiss(data, role);
|
||||
return this._nav.remove(this._nav.indexOf(this), 1, options).then(() => {
|
||||
return this._nav.removeView(this, options).then(() => {
|
||||
this._onDidDismiss && this._onDidDismiss(data, role);
|
||||
this._onDidDismiss = null;
|
||||
return data;
|
||||
|
||||
Reference in New Issue
Block a user