changed itemcollection to support filtering by traits

This commit is contained in:
Edin Dazdarevic
2015-02-11 07:11:28 +01:00
parent 108f370bd0
commit 3986ac340c
4 changed files with 38 additions and 13 deletions

View File

@@ -4,10 +4,11 @@ var ItemConstants = require('../constants/itemConstants');
// Define action methods
var ItemActions = {
loadByCategory: function(categoryId) {
loadByCategory: function(categoryId, query) {
AppDispatcher.handleAction({
actionType: ItemConstants.LOAD_BY_CATEGORY,
categoryId : categoryId
categoryId : categoryId,
query : query
});
},