lib/api/decodeConfig.js
function decodeGlobal(config, result) {
    var values = result.values;

    delete values.generator;
    delete values.output;

    return config.updateValues(values);
}
function decodeGlobal(config, result) {
    var values = result.values;

    delete values.generator;
    delete values.output;

    return config.updateValues(values);
}
function decodeGlobal ( config , result ) { var values = result . values ; delete values . generator ; delete values . output ; return config . updateValues ( values ) ; }
Decode changes from a JS API to a config object

@param {Config} config
@param {Object} result: result from API
@return {Config}
Decode changes from a JS API to a config object