mirror of
https://github.com/zoriya/flood.git
synced 2025-12-20 14:15:15 +00:00
16 lines
329 B
JavaScript
16 lines
329 B
JavaScript
import {Dispatcher} from 'flux';
|
|
|
|
class FloodDispatcher extends Dispatcher {
|
|
dispatchUIAction(action) {
|
|
this.dispatch({source: 'UI_ACTION', action});
|
|
}
|
|
|
|
dispatchServerAction(action) {
|
|
this.dispatch({source: 'SERVER_ACTION', action});
|
|
}
|
|
}
|
|
|
|
let AppDispatcher = new FloodDispatcher();
|
|
|
|
export default AppDispatcher;
|