paging done, needs some additional refactoring
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user