src/preferences/PreferencesBase.js
function (id) {
            var scope = this._scopes[id],
                shadowIndex;
            if (!scope) {
                return;
            }

            this.removeFromScopeOrder(id);
            shadowIndex = _.findIndex(this._defaults._shadowScopeOrder, function (entry) {
                return entry.id === id;
            });
            this._defaults._shadowScopeOrder.splice(shadowIndex, 1);
            delete this._scopes[id];
        }
function (id) {
            var scope = this._scopes[id],
                shadowIndex;
            if (!scope) {
                return;
            }

            this.removeFromScopeOrder(id);
            shadowIndex = _.findIndex(this._defaults._shadowScopeOrder, function (entry) {
                return entry.id === id;
            });
            this._defaults._shadowScopeOrder.splice(shadowIndex, 1);
            delete this._scopes[id];
        }
function ( id ) { var scope = this . _scopes [ id ] , shadowIndex ; if ( ! scope ) { return ; } this . removeFromScopeOrder ( id ) ; shadowIndex = _ . findIndex ( this . _defaults . _shadowScopeOrder , function ( entry ) { return entry . id === id ; } ) ; this . _defaults . _shadowScopeOrder . splice ( shadowIndex , 1 ) ; delete this . _scopes [ id ] ; }
Removes a Scope from this PreferencesSystem. Returns without doing anything
if the Scope does not exist. Notifies listeners of preferences that may have
changed.

@param {string} id Name of the Scope to remove
Removes a Scope from this PreferencesSystem . Returns without doing anything if the Scope does not exist . Notifies listeners of preferences that may have changed .