Scope

Scope objects can be used to store command state across command invocations.

See the Command object methods for examples.


Scope object

methods

Scope.declare( variableName : String,  initialValue : Boolean|Number|String|Object)
Scope.get( variableName : String,  fallbackValue : Boolean|Number|Object|String) : Boolean|Number
Scope.setListener( name : String,  handler : Function reference)
Scope.set( variableName : String,  value : Boolean|Number|String|Object)