mirror of
https://github.com/fergalmoran/dss.git
synced 2026-01-05 16:34:07 +00:00
10 lines
307 B
JavaScript
10 lines
307 B
JavaScript
define(['backbone'], function (Backbone) {
|
|
return Backbone.Collection.extend({
|
|
parse: function (response) {
|
|
this.meta = response.meta || {};
|
|
this.page_count = this.meta.total_count / this.meta.limit;
|
|
return response.objects || response;
|
|
}
|
|
});
|
|
});
|