lib/gcli/settings.js
function Settings(types, settingValues) {
  this._types = types;

  // Where we store the settings that we've created
  this._settings = {};

  // Where the values for the settings are stored while in use.
  this._settingValues = settingValues || {};

  // Where the values for the settings are persisted for next use.
  this._settingStorage = new LocalSettingStorage();
  this._settingStorage.load(this._settingValues);

  // Event for use to detect when the list of settings changes
  this.onChange = util.createEvent('Settings.onChange');
}
function Settings(types, settingValues) {
  this._types = types;

  // Where we store the settings that we've created
  this._settings = {};

  // Where the values for the settings are stored while in use.
  this._settingValues = settingValues || {};

  // Where the values for the settings are persisted for next use.
  this._settingStorage = new LocalSettingStorage();
  this._settingStorage.load(this._settingValues);

  // Event for use to detect when the list of settings changes
  this.onChange = util.createEvent('Settings.onChange');
}
function Settings ( types , settingValues ) { this . _types = types ; // Where we store the settings that we've created this . _settings = { } ; // Where the values for the settings are stored while in use. this . _settingValues = settingValues || { } ; // Where the values for the settings are persisted for next use. this . _settingStorage = new LocalSettingStorage ( ) ; this . _settingStorage . load ( this . _settingValues ) ; // Event for use to detect when the list of settings changes this . onChange = util . createEvent ( 'Settings.onChange' ) ; }
A manager for the registered Settings
A manager for the registered Settings