AppDispatcher.js 282 B

1234567891011
  1. const Dispatcher = require('flux').Dispatcher;
  2. module.exports = Object.assign(new Dispatcher(), {
  3. // @param {object} action The data coming from the view.
  4. handleViewAction: function(action) {
  5. this.dispatch({
  6. source: 'VIEW_ACTION',
  7. action: action
  8. });
  9. }
  10. });