diff options
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; |