Top | ![]() |
![]() |
![]() |
![]() |
object init (object state
,array listeners
);
Constructor function
object
get ();
Passing null or an asterisk will retrieve the entire state object. Passing keys with dot notation will return the corresponding object path. E.g., "bar.foo".
object set (object object
,boolean forceDispatch
);
Copies a keyed object back into state, and calls dispatch to fire any connected callbacks.
any
trigger ();
Fires a callback event for any matching keys in the listener queue. It supports passing through unlimited arguments to the callback. Useful for setting up actions.
number
connect (function callback
);