single method for updating cart item state / fixed problems with sinatra contrib

This commit is contained in:
Senad Uka
2015-02-07 07:52:32 +01:00
parent c515e400e7
commit a642cb55eb
7 changed files with 39 additions and 21 deletions

View File

@@ -4,7 +4,7 @@ var keyMirror = require('react/lib/keyMirror');
module.exports = keyMirror({
LOAD: null,
ADD_ITEM: null,
// because removeItem can be used to completely remove item
// because REMOVE_ITEM could be used to completely remove item
// and not just decrease count by 1
TAKE_ITEM_OUT: null
});