function Request(options) {
    options = options || {};

    // Will be used in the keyboard case and the cli case
    this.command = options.command;

    // Will be used only in the cli case
    this.args = options.args;
    this.typed = options.typed;

    // Have we been initialized?
    this._begunOutput = false;

    this.start = new Date();
    this.end = null;
    this.completed = false;
    this.error = false;
}
function Request(options) {
    options = options || {};

    
    this.command = options.command;

    
    this.args = options.args;
    this.typed = options.typed;

    
    this._begunOutput = false;

    this.start = new Date();
    this.end = null;
    this.completed = false;
    this.error = false;
}
function Request ( options ) { options = options || { } ; // Will be used in the keyboard case and the cli case this . command = options . command ; // Will be used only in the cli case this . args = options . args ; this . typed = options . typed ; // Have we been initialized? this . _begunOutput = false ; this . start = new Date ( ) ; this . end = null ; this . completed = false ; this . error = false ; }
To create an invocation, you need to do something like this (all the ctor
args are optional):
<pre>
var request = new Request({
command: command,
args: args,
typed: typed
});
</pre>
@constructor
To create an invocation you need to do something like this ( all the ctor args are optional ) : <pre > var request = new Request ( { command : command args : args typed : typed } ) ; < / pre >