Command

ICE. Command

new Command(fn, context, disabled)

The ICE command.
Parameters:
Name Type Description
fn String | function The function or function name.
context Object The context.
disabled Boolean The flag whether command is initially disabled.

Members

context :Object

Type:
  • Object

disabled :Boolean

Type:
  • Boolean

fin :Array

Type:

fn :function

The function.
Type:
  • function

name :String

The function name.
Type:
  • String

next :ICE.Command

Next command in chain.
Type:

prev :ICE.Command

Previous command in chain.
Type:

running :Boolean

The flag whether command is running (to avoid loops).
Type:
  • Boolean

Methods

finalize(fn, dataopt)

Adds finalize callback.
Parameters:
Name Type Attributes Description
fn function The function in command context.
data * <optional>
The data to pass to callback.