fix(NavRegistry): load empty view array if undefined

This commit is contained in:
Adam Bradley
2015-09-24 20:35:46 -05:00
parent dfc3d9af81
commit e4a48baef0

View File

@ -3,7 +3,7 @@
* Map of possible views that can be navigated to using an Ionic NavController * Map of possible views that can be navigated to using an Ionic NavController
*/ */
export class NavRegistry { export class NavRegistry {
constructor(views) { constructor(views=[]) {
this._views = new Map(views.map(view => [view.name, view])); this._views = new Map(views.map(view => [view.name, view]));
} }