Skip to content

Instantly share code, notes, and snippets.

@cassiozen
Last active August 29, 2015 14:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cassiozen/8a29ba91d36bfa1add9e to your computer and use it in GitHub Desktop.
Save cassiozen/8a29ba91d36bfa1add9e to your computer and use it in GitHub Desktop.
var Dispatcher = require('flux').Dispatcher;
/*
* Do not create helper methods such as "handleViewAction" unless you have a use case in your app
var AppDispatcher = new Dispatcher();
AppDispatcher.handleViewAction = function(action) {
this.dispatch({
source: 'VIEW_ACTION',
action: action
});
}
*/
module.exports = new Dispatcher();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment