Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var Dispatcher = require('flux').Dispatcher;
- var assign = require('react/lib/Object.assign');
- var ForecastDispatcher = assign(new Dispatcher(), {
- handleViewAction: function(action) {
- console.log('ForecastDispatcher: received a new action.')
- console.log(action)
- this.dispatch({
- source: 'VIEW_ACTION',
- action: action
- })
- }
- })
- module.exports = ForecastDispatcher
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement