2015-01-25 10:26:10 +01:00
|
|
|
var Dispatcher = require('flux').Dispatcher;
|
|
|
|
|
|
|
|
|
|
// Create dispatcher instance
|
|
|
|
|
var AppDispatcher = new Dispatcher();
|
|
|
|
|
|
|
|
|
|
// Convenience method to handle dispatch requests
|
|
|
|
|
AppDispatcher.handleAction = function(action) {
|
|
|
|
|
this.dispatch({
|
|
|
|
|
source: 'VIEW_ACTION',
|
|
|
|
|
action: action
|
|
|
|
|
});
|
2015-01-27 05:47:10 +01:00
|
|
|
|
2015-05-14 06:21:49 +02:00
|
|
|
|
2015-01-25 10:26:10 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
module.exports = AppDispatcher;
|