Advertisement
Guest User

Untitled

a guest
Jul 30th, 2015
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. var Dispatcher = require('flux').Dispatcher;
  2. var assign = require('react/lib/Object.assign');
  3.  
  4. var ForecastDispatcher = assign(new Dispatcher(), {
  5. handleViewAction: function(action) {
  6. console.log('ForecastDispatcher: received a new action.')
  7. console.log(action)
  8. this.dispatch({
  9. source: 'VIEW_ACTION',
  10. action: action
  11. })
  12. }
  13. })
  14.  
  15. module.exports = ForecastDispatcher
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement