diff options
author | Samy Pessé <samypesse@gmail.com> | 2016-04-27 17:58:35 +0200 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2016-04-27 17:58:35 +0200 |
commit | e781d6d2b1705f44fcdd950f5541917fde41323f (patch) | |
tree | 309c2378efe990dfdb650a446de0640eafd2cdfe /lib/models | |
parent | 5b342b50ce862a4d60002451e6c1abd09a7b20ce (diff) | |
download | gitbook-e781d6d2b1705f44fcdd950f5541917fde41323f.zip gitbook-e781d6d2b1705f44fcdd950f5541917fde41323f.tar.gz gitbook-e781d6d2b1705f44fcdd950f5541917fde41323f.tar.bz2 |
Add test for assets inliner
Diffstat (limited to 'lib/models')
-rw-r--r-- | lib/models/output.js | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/lib/models/output.js b/lib/models/output.js index c11017e..43e36f8 100644 --- a/lib/models/output.js +++ b/lib/models/output.js @@ -62,23 +62,32 @@ Output.prototype.getRoot = function() { }; /** - Return logegr for this output (same as book) + Update state of output - @return {Logger} + @param {Map} newState + @return {Output} */ -Output.prototype.getLogger = function() { - return this.getBook().getLogger(); +Output.prototype.setState = function(newState) { + return this.set('state', newState); }; /** - Update state of output + Update options - @param {Output} output - @param {Map} newState + @param {Map} newOptions @return {Output} */ -Output.updateState = function(output, newState) { - return output.set('state', newState); +Output.prototype.setOptions = function(newOptions) { + return this.set('options', newOptions); +}; + +/** + Return logegr for this output (same as book) + + @return {Logger} +*/ +Output.prototype.getLogger = function() { + return this.getBook().getLogger(); }; module.exports = Output; |