changed structure - now no longer using flux-react but flux and react separately

This commit is contained in:
Senad Uka
2014-12-21 09:05:40 +01:00
parent 8106a0f375
commit 7a7b14fba3
15 changed files with 91 additions and 84 deletions

View File

@@ -0,0 +1,32 @@
var Constants = require('../constants/CsvEditorConstants');
var CsvEditorDispatcher = assign(new Dispatcher(), {
/**
* @param {object} action The details of the action, including the action's
* type and additional data coming from the server.
*/
handleBackendAction: function(action) {
var payload = {
source: PayloadSources.BACKEND_ACTION,
action: action
};
this.dispatch(payload);
},
/**
* @param {object} action The details of the action, including the action's
* type and additional data coming from the view.
*/
handleViewAction: function(action) {
var payload = {
source: PayloadSources.VIEW_ACTION,
action: action
};
this.dispatch(payload);
}
});
module.exports = CsvEditorDispatcher;