App.Dispatcher

The App.Dispatcher module is responsible for dispatching actions to the store and keeping track of registered stores.

Methods

(static) dispatch(action)

Dispatches an action to the store. The action MUST have an type property

Parameters:
Name Type Description
action Object

to be handled by the store

(static) register(callback)

Registers an store as receiver of actions

Parameters:
Name Type Description
callback function

that is registered from the store. How should the store handle an specific action.