paging done, needs some additional refactoring

This commit is contained in:
Edin Dazdarevic
2015-02-15 14:21:50 +01:00
parent ba22ea8bd7
commit f675f8b024
11 changed files with 136 additions and 32 deletions

View File

@@ -13,7 +13,9 @@ var ItemCollection = Backbone.Collection.extend({
}
);
},
setTotalCount: function(total) {
this.totalCount = total;
},
addFilter: function(name, value) {
this.filters = this.filters || {};
this.filters[name] = value;
@@ -75,4 +77,4 @@ var ItemCollection = Backbone.Collection.extend({
}
});
module.exports = ItemCollection;
module.exports = ItemCollection;