The Undo subcomponent provides undo support for any component that bears a model. For more information about subcomponents, see Tutorial - Subcomponents. Subcomponent Name: fluid.undoDecorator ModelTo support Undo, a component must bear a model, a collection of Javascript objects which constitute the data which it is operating on. A model: - consists of pure data, i.e. Javascript objects containing only other objects and primitives, without any functions;
- is public, i.e. accessible as a member of the component's top-level
that .
The actual contents of a model is, of course, entirely dependent on the component. To support Undo, a component's model must: |