Files
flood/client/source/scripts/dispatcher/AppDispatcher.js
2015-12-14 21:30:19 -08:00

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;