fixed missing ifmounted bug / fixed getting item when navigating directly to page

This commit is contained in:
Senad Uka
2015-01-28 05:04:45 +01:00
parent f27c29fccf
commit f8b3ef3a64
9 changed files with 109 additions and 92 deletions

View File

@@ -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;