Skip to main content

Action

Action

Base class for implementing reversible actions. Actions are intended to be used in conjunction with ActionProcessor

Kind: global class

action.isAction : boolean

Used for quick instanceof checks

Kind: instance property of Action

action.computeByteSize() ⇒ number

How much memory does this action require, used by the ActionProcessor in order to decide how much history to keep

Kind: instance method of Action

action.apply(context)

Apply action

Kind: instance method of Action

ParamType
contextCTX

action.revert(context)

Revert action, restoring state to just before this action was applied

Kind: instance method of Action

ParamType
contextCTX