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,25 @@
var AppDispatcher = require('../dispatcher/appDispatcher');
var ItemConstants = require('../constants/itemConstants');
// Define action methods
var ItemActions = {
// select item
selectItem: function(item) {
AppDispatcher.handleAction({
actionType: ItemConstants.SELECT_ITEM,
item: item
})
},
loadFrontPageItems: function() {
AppDispatcher.handleAction({
actionType: ItemConstants.LOAD_FOR_FRONTPAGE
})
}
};
module.exports = ItemActions;