Action
Action
Base class for implementing reversible actions. Actions are intended to be used in conjunction with ActionProcessor
Kind: global class
Author: Alex Goldring
Copyright: Company Named Limited (c) 2025
- Action
- .isAction :
boolean - .computeByteSize() ⇒
number - .apply(context)
- .revert(context)
- .isAction :
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
| Param | Type |
|---|---|
| context | CTX |
action.revert(context)
Revert action, restoring state to just before this action was applied
Kind: instance method of Action
| Param | Type |
|---|---|
| context | CTX |