mixins/stateful.js
Methods
-
innerstateful(target, defaultState){Object}
-
Applies
StatefulMixinto a target object.If the target object is
eventedand has ahandleStateChangedmethod, that method will be automatically bound to thestatechangedevent on itself.Name Type Description targetObject The object to be made stateful.
defaultStateObject optional A default set of properties to populate the newly-stateful object's
stateproperty.Returns:
Type Description Object Returns the target.