src/preferences/PreferencesBase.js
function (id, context) {
            var layerCounter,
                layers = this._layers,
                layer,
                data = this.data,
                result;

            context = context || {};

            for (layerCounter = 0; layerCounter < layers.length; layerCounter++) {
                layer = layers[layerCounter];
                result = layer.get(data[layer.key], id, context);
                if (result !== undefined) {
                    return result;
                }
            }

            if (this._exclusions.indexOf(id) === -1) {
                return data[id];
            }
        }
function (id, context) {
            var layerCounter,
                layers = this._layers,
                layer,
                data = this.data,
                result;

            context = context || {};

            for (layerCounter = 0; layerCounter < layers.length; layerCounter++) {
                layer = layers[layerCounter];
                result = layer.get(data[layer.key], id, context);
                if (result !== undefined) {
                    return result;
                }
            }

            if (this._exclusions.indexOf(id) === -1) {
                return data[id];
            }
        }
function ( id , context ) { var layerCounter , layers = this . _layers , layer , data = this . data , result ; context = context || { } ; for ( layerCounter = 0 ; layerCounter < layers . length ; layerCounter ++ ) { layer = layers [ layerCounter ] ; result = layer . get ( data [ layer . key ] , id , context ) ; if ( result !== undefined ) { return result ; } } if ( this . _exclusions . indexOf ( id ) === - 1 ) { return data [ id ] ; } }
Get the value for id, given the context. The context is provided to layers
which may override the value from the main data of the Scope. Note that
layers will often exclude values from consideration.

@param {string} id Preference to retrieve
@param {?Object} context Optional additional information about the request
@return {*} Current value of the Preference
Get the value for id given the context . The context is provided to layers which may override the value from the main data of the Scope . Note that layers will often exclude values from consideration .