Skip to content

Commit 90f9b5c

Browse files
committed
fix(config): Cannot read property 'canDisableScroll' of undefined in unit tests
1 parent 8b65398 commit 90f9b5c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/app/app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export class App {
7171
// listen for hardware back button events
7272
// register this back button action with a default priority
7373
_platform.registerBackButtonAction(this.navPop.bind(this));
74-
this._canDisableScroll = this._config.get('canDisableScroll', true);
74+
this._canDisableScroll = _config.get('canDisableScroll', true);
7575
}
7676

7777
/**

src/config/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ import { isObject, isDefined, isFunction, isArray } from '../util/util';
127127
**/
128128
export class Config {
129129
private _c: any = {};
130-
private _s: any;
130+
private _s: any = {};
131131
private _qp: QueryParams;
132132
private _modes: any = {};
133133
private _trns: any = {};

0 commit comments

Comments
 (0)