chore(): fix type check error

This commit is contained in:
Adam Bradley
2016-08-04 22:54:50 -05:00
parent a4e393b619
commit 5cb9d65146

View File

@ -195,7 +195,7 @@ export class NavControllerBase extends Ion implements NavController {
let leavingView = this.getByState(STATE_INIT_LEAVE); let leavingView = this.getByState(STATE_INIT_LEAVE);
if (!leavingView && this._isPortal) { if (!leavingView && this._isPortal) {
// if we didn't find an active view, and this is a portal // if we didn't find an active view, and this is a portal
let activeNav = this._app.getActiveNav(); let activeNav = <NavControllerBase>this._app.getActiveNav();
if (activeNav) { if (activeNav) {
leavingView = activeNav.getByState(STATE_INIT_LEAVE); leavingView = activeNav.getByState(STATE_INIT_LEAVE);
} }