Flux Dispatcher
A basic Dispatcher based on Facebook's Flux architecture.
Usage
var Dispatcher = my_dispatcher = my_dispatcher my_dispatcher
Caveats and Conventions
In true Flux fashion there is only one dispatcher. You can instantiate as many as you like within the same process but all dispatches will be shared to all registered callbacks. Instead, favor filtering by the payload in your callbacks.
my_dispatcher
Use multiple instantiations for simplifying payloads
var pug_dispatcher = pug_dispatcher { this}