changed structure - now no longer using flux-react but flux and react separately
This commit is contained in:
32
app/dispatcher/CsvEditorDispatcher.js
Normal file
32
app/dispatcher/CsvEditorDispatcher.js
Normal 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;
|
||||
Reference in New Issue
Block a user