fixed missing ifmounted bug / fixed getting item when navigating directly to page
This commit is contained in:
@@ -4,22 +4,19 @@ 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
|
||||
})
|
||||
},
|
||||
|
||||
loadItemWithDetails: function() {
|
||||
AppDispatcher.handleAction({
|
||||
actionType: ItemConstants.LOAD_ITEM_WITH_DETAILS,
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
module.exports = ItemActions;
|
||||
Reference in New Issue
Block a user