fix(nav): move null assignment of _onWillDismiss

This commit is contained in:
mattbryan9
2016-09-19 14:30:17 +01:00
committed by Adam Bradley
parent 001c1c9f2c
commit 35193c42c4

View File

@ -179,6 +179,7 @@ export class ViewController {
this._onWillDismiss && this._onWillDismiss(data, role);
return this._nav.remove(this._nav.indexOf(this), 1, options).then(() => {
this._onDidDismiss && this._onDidDismiss(data, role);
this._onWillDismiss = null;
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;
}
/**