From 35193c42c4b6a5ff0a7263510c059f849080733e Mon Sep 17 00:00:00 2001 From: mattbryan9 Date: Mon, 19 Sep 2016 14:30:17 +0100 Subject: [PATCH] fix(nav): move null assignment of _onWillDismiss --- src/navigation/view-controller.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/navigation/view-controller.ts b/src/navigation/view-controller.ts index 0058dbd18dc..447dc27b7aa 100644 --- a/src/navigation/view-controller.ts +++ b/src/navigation/view-controller.ts @@ -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; } /**