cart state for item in details page finnaly shows (arrggh worst kind of bugs)

This commit is contained in:
Senad Uka
2015-02-08 08:29:24 +01:00
parent 7770e59b81
commit 113b70e8fa
11 changed files with 139 additions and 37 deletions

View File

@@ -6,11 +6,10 @@ var CartActions = {
load: function() {
AppDispatcher.handleAction({
actionType: CartConstants.LOAD
actionType: CartConstants.LOAD_CART_CONTENTS
});
},
addItem: function(itemId) {
AppDispatcher.handleAction({
actionType: CartConstants.ADD_ITEM,
@@ -23,6 +22,12 @@ var CartActions = {
actionType: CartConstants.TAKE_ITEM_OUT,
itemId: itemId
});
},
dataLoaded: function() {
AppDispatcher.handleAction({
actionType: CartConstants.CART_DATA_LOADED
});
}
};