we are using flux now ... yaaay ...
This commit is contained in:
14
front-ui/app/dispatcher/appDispatcher.js
Normal file
14
front-ui/app/dispatcher/appDispatcher.js
Normal file
@@ -0,0 +1,14 @@
|
||||
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
|
||||
});
|
||||
}
|
||||
|
||||
module.exports = AppDispatcher;
|
||||
Reference in New Issue
Block a user