Skip to content

Commit

Permalink
fix(nav): move null assignment of _onWillDismiss
Browse files Browse the repository at this point in the history
  • Loading branch information
mattbryan9 authored and adamdbradley committed Sep 19, 2016
1 parent 001c1c9 commit 35193c4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/navigation/view-controller.ts
Expand Up @@ -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;
});
}
Expand Down Expand Up @@ -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;
}

/**
Expand Down

0 comments on commit 35193c4

Please sign in to comment.