From dd82219d1a4bffaeee74fa3feb2c7d71a470859d Mon Sep 17 00:00:00 2001 From: Adam Bradley Date: Thu, 19 Nov 2015 07:40:36 -0600 Subject: [PATCH] fix(navController): ensure leavingView obj exists Closes #582 --- ionic/components/nav/nav-controller.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ionic/components/nav/nav-controller.ts b/ionic/components/nav/nav-controller.ts index c1fc8f77de..0859733efe 100644 --- a/ionic/components/nav/nav-controller.ts +++ b/ionic/components/nav/nav-controller.ts @@ -450,7 +450,7 @@ export class NavController extends Ion { return done(); } - this._setZIndex(enteringView.instance, leavingView.instance, opts.direction); + this._setZIndex(enteringView.instance, leavingView && leavingView.instance, opts.direction); this._zone.runOutsideAngular(() => {