Dispatcher
A Flux dispatcher, with promises.
Based on examples from Facebook's Flux project.
Usage
var Dispatcher = ; // Register a callbackcallbackIndex1 = Dispatcher; // Wait for other callbacks to completecallbackIndex2 = Dispatcher; callbackIndex3 = Dispatcher; // Or omit the callback and use the returned promise// Enables use of co, suspend, etc.callbackIndex4 = Dispatcher;
Dependencies
- react-tools, for es6 transforming
- es6-promise (if global Promise does not exist)
License
MIT
Parisleaf
http://parisleaf.com