Command.configure

Initial setup of the command. Declare scope variables here.

myCounterCommand.configure = function (scope) {
  scope.declare("counter", 0);
}

Command.configure( scope : Scope)

Arguments

scope
Scope. Object to save state to and from, see Scope