Skip to content

Commit

Permalink
fix(config): Cannot read property 'canDisableScroll' of undefined in …
Browse files Browse the repository at this point in the history
…unit tests
  • Loading branch information
manucorporat committed Oct 20, 2016
1 parent 8b65398 commit 90f9b5c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/app/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/config/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {};
Expand Down

0 comments on commit 90f9b5c

Please sign in to comment.