Skip to content

Commit 35193c4

Browse files
mattbryan9adamdbradley
authored andcommitted
fix(nav): move null assignment of _onWillDismiss
1 parent 001c1c9 commit 35193c4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/navigation/view-controller.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ export class ViewController {
179179
this._onWillDismiss && this._onWillDismiss(data, role);
180180
return this._nav.remove(this._nav.indexOf(this), 1, options).then(() => {
181181
this._onDidDismiss && this._onDidDismiss(data, role);
182+
this._onWillDismiss = null;
182183
return data;
183184
});
184185
}
@@ -514,7 +515,7 @@ export class ViewController {
514515
}
515516
}
516517

517-
this._nav = this._cmp = this.instance = this._cntDir = this._cntRef = this._hdrDir = this._ftrDir = this._nb = this._onDidDismiss = this._onWillDismiss = null;
518+
this._nav = this._cmp = this.instance = this._cntDir = this._cntRef = this._hdrDir = this._ftrDir = this._nb = this._onDidDismiss = null;
518519
}
519520

520521
/**

0 commit comments

Comments
 (0)