From 90f9b5c42f51353fddb18c10ebd2c69dfb15ff81 Mon Sep 17 00:00:00 2001 From: "Manu Mtz.-Almeida" Date: Thu, 20 Oct 2016 22:16:25 +0200 Subject: [PATCH] fix(config): Cannot read property 'canDisableScroll' of undefined in unit tests --- src/components/app/app.ts | 2 +- src/config/config.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/app/app.ts b/src/components/app/app.ts index 895b94ae22..8a621e5eba 100644 --- a/src/components/app/app.ts +++ b/src/components/app/app.ts @@ -71,7 +71,7 @@ export class App { // listen for hardware back button events // register this back button action with a default priority _platform.registerBackButtonAction(this.navPop.bind(this)); - this._canDisableScroll = this._config.get('canDisableScroll', true); + this._canDisableScroll = _config.get('canDisableScroll', true); } /** diff --git a/src/config/config.ts b/src/config/config.ts index e541d31804..514a187aef 100644 --- a/src/config/config.ts +++ b/src/config/config.ts @@ -127,7 +127,7 @@ import { isObject, isDefined, isFunction, isArray } from '../util/util'; **/ export class Config { private _c: any = {}; - private _s: any; + private _s: any = {}; private _qp: QueryParams; private _modes: any = {}; private _trns: any = {};