22 lines
471 B
JavaScript
22 lines
471 B
JavaScript
var AppDispatcher = require('../dispatcher/appDispatcher');
|
|
var ItemConstants = require('../constants/itemConstants');
|
|
|
|
// Define action methods
|
|
var ItemActions = {
|
|
|
|
|
|
loadFrontPageItems: function() {
|
|
AppDispatcher.handleAction({
|
|
actionType: ItemConstants.LOAD_FOR_FRONTPAGE
|
|
})
|
|
},
|
|
|
|
loadItemWithDetails: function() {
|
|
AppDispatcher.handleAction({
|
|
actionType: ItemConstants.LOAD_ITEM_WITH_DETAILS,
|
|
})
|
|
}
|
|
|
|
};
|
|
|
|
module.exports = ItemActions; |