perf(nav): avoid running zone when it is not needed

This commit is contained in:
Manu Mtz.-Almeida
2016-11-07 20:59:48 +01:00
parent bc5cd7f03f
commit be72d39bd9
3 changed files with 35 additions and 17 deletions

View File

@ -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;