cohort.js 440 Bytes
Newer Older
1
(function(define) {
2
    'use strict';
3 4
    define(['backbone', 'js/groups/models/cohort'], function(Backbone, CohortModel) {
        var CohortCollection = Backbone.Collection.extend({
5 6
            model: CohortModel,
            comparator: 'name',
7

8 9 10 11 12
            parse: function(response) {
                return response.cohorts;
            }
        });
        return CohortCollection;
13
    });
14
}).call(this, define || RequireJS.define);