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