mixins/stateful.js
Mixins
Methods
- 
    
        
inner stateful(target, defaultStateopt) → {Object}
 - 
    
    
Applies StatefulMixin to a target object.
If the target object is evented and has a
handleStateChangedmethod, that method will be automatically bound to thestatechangedevent on itself.Parameters:
Name Type Attributes Description targetObject The object to be made stateful.
defaultStateObject <optional> 
A default set of properties to populate the newly-stateful object's
stateproperty.Returns:
Object -Returns the
target.