lib/api/decodeGlobal.js
function decodeGlobal(output, result) {
    var book = output.getBook();
    var config = book.getConfig();

    // Update config
    config = decodeConfig(config, result.config);
    book = book.set('config', config);

    return output.set('book', book);
}
function decodeGlobal(output, result) {
    var book = output.getBook();
    var config = book.getConfig();

    // Update config
    config = decodeConfig(config, result.config);
    book = book.set('config', config);

    return output.set('book', book);
}
function decodeGlobal ( output , result ) { var book = output . getBook ( ) ; var config = book . getConfig ( ) ; // Update config config = decodeConfig ( config , result . config ) ; book = book . set ( 'config' , config ) ; return output . set ( 'book' , book ) ; }
Decode changes from a JS API to a output object.
Only the configuration can be edited by plugin's hooks

@param {Output} output
@param {Object} result: result from API
@return {Output}
Decode changes from a JS API to a output object . Only the configuration can be edited by plugin s hooks