fix(config): Cannot read property 'canDisableScroll' of undefined in unit tests

This commit is contained in:
Manu Mtz.-Almeida
2016-10-20 22:16:25 +02:00
parent 8b65398044
commit 90f9b5c42f
2 changed files with 2 additions and 2 deletions

View File

@ -71,7 +71,7 @@ export class App {
// listen for hardware back button events // listen for hardware back button events
// register this back button action with a default priority // register this back button action with a default priority
_platform.registerBackButtonAction(this.navPop.bind(this)); _platform.registerBackButtonAction(this.navPop.bind(this));
this._canDisableScroll = this._config.get('canDisableScroll', true); this._canDisableScroll = _config.get('canDisableScroll', true);
} }
/** /**

View File

@ -127,7 +127,7 @@ import { isObject, isDefined, isFunction, isArray } from '../util/util';
**/ **/
export class Config { export class Config {
private _c: any = {}; private _c: any = {};
private _s: any; private _s: any = {};
private _qp: QueryParams; private _qp: QueryParams;
private _modes: any = {}; private _modes: any = {};
private _trns: any = {}; private _trns: any = {};