From e4a48baef0b73b0c65a22d0f23ecb5497f64ef30 Mon Sep 17 00:00:00 2001 From: Adam Bradley Date: Thu, 24 Sep 2015 20:35:46 -0500 Subject: [PATCH] fix(NavRegistry): load empty view array if undefined --- ionic/components/nav/nav-registry.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ionic/components/nav/nav-registry.ts b/ionic/components/nav/nav-registry.ts index d7d8e43300..b389dad071 100644 --- a/ionic/components/nav/nav-registry.ts +++ b/ionic/components/nav/nav-registry.ts @@ -3,7 +3,7 @@ * Map of possible views that can be navigated to using an Ionic NavController */ export class NavRegistry { - constructor(views) { + constructor(views=[]) { this._views = new Map(views.map(view => [view.name, view])); }