diff --git a/ionic/components/app/app.js b/ionic/components/app/app.js index 852769c468..94c539d4b7 100644 --- a/ionic/components/app/app.js +++ b/ionic/components/app/app.js @@ -36,13 +36,6 @@ export class IonicApp { return this.components[key]; } - config(val) { - if (arguments.length) { - this._config = val; - } - return this._config; - } - /** * Create and append the given component into the root * element of the app. @@ -152,7 +145,7 @@ export function ionicBootstrap(ComponentType, config) { config.setPlatform(Platform); // make the config global - IonicConfig.setGlobal(config); + IonicConfig.global = config; // config and platform settings have been figured out // apply the correct CSS to the app diff --git a/ionic/config/config.js b/ionic/config/config.js index 2bdb6e8c29..01e466e375 100644 --- a/ionic/config/config.js +++ b/ionic/config/config.js @@ -1,4 +1,4 @@ -import {isString, isObject, isDefined, isFunction, extend} from '../util/util'; +import {isObject, isDefined, isFunction, extend} from '../util/util'; export class IonicConfig { @@ -125,7 +125,7 @@ export class IonicConfig { this._settings.platforms = extend(platform.settings(), this._settings.platforms || {}); } - static setGlobal(config) { + static set global(config) { globalConfig = config; } @@ -135,4 +135,4 @@ export class IonicConfig { } -export let globalConfig = null; +let globalConfig = null;