we are using flux now ... yaaay ...

This commit is contained in:
Senad Uka
2015-01-25 10:26:10 +01:00
parent bbb6e9cc71
commit fe3703d892
15 changed files with 227 additions and 56 deletions

View 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;