function (id, context) {
            var scopeCounter,
                scopeName;

            context = this._getContext(context);

            var scopeOrder = this._getScopeOrder(context);

            for (scopeCounter = 0; scopeCounter < scopeOrder.length; scopeCounter++) {
                scopeName = scopeOrder[scopeCounter];
                var scope = this._scopes[scopeName];
                if (scope) {
                    var result = scope.getPreferenceLocation(id, context);
                    if (result !== undefined) {
                        result.scope = scopeName;
                        return result;
                    }
                }
            }
        }
function (id, context) {
            var scopeCounter,
                scopeName;

            context = this._getContext(context);

            var scopeOrder = this._getScopeOrder(context);

            for (scopeCounter = 0; scopeCounter < scopeOrder.length; scopeCounter++) {
                scopeName = scopeOrder[scopeCounter];
                var scope = this._scopes[scopeName];
                if (scope) {
                    var result = scope.getPreferenceLocation(id, context);
                    if (result !== undefined) {
                        result.scope = scopeName;
                        return result;
                    }
                }
            }
        }
function ( id , context ) { var scopeCounter , scopeName ; context = this . _getContext ( context ) ; var scopeOrder = this . _getScopeOrder ( context ) ; for ( scopeCounter = 0 ; scopeCounter < scopeOrder . length ; scopeCounter ++ ) { scopeName = scopeOrder [ scopeCounter ] ; var scope = this . _scopes [ scopeName ] ; if ( scope ) { var result = scope . getPreferenceLocation ( id , context ) ; if ( result !== undefined ) { result . scope = scopeName ; return result ; } } } }
Gets the location in which the value of a preference has been set.

@param {string} id Name of the preference for which the value should be retrieved
@param {Object=} context Optional context object to change the preference lookup
@return {{scope: string, layer: ?string, layerID: ?object}} Object describing where the preferences came from
Gets the location in which the value of a preference has been set .
Returns the preference location for the given preference id and context