25 lines
489 B
JavaScript
25 lines
489 B
JavaScript
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; |