mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-21 04:53:58 +08:00
fix(config): Cannot read property 'canDisableScroll' of undefined in unit tests
This commit is contained in:
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -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 = {};
|
||||||
|
Reference in New Issue
Block a user