2013-06-24 23:41:59 +00:00
|
|
|
|
'use strict';
|
|
|
|
|
define(
|
|
|
|
|
[
|
2013-08-05 09:09:41 +00:00
|
|
|
|
'backbone',
|
|
|
|
|
'Series/SeasonModel'
|
|
|
|
|
], function (Backbone, SeasonModel) {
|
|
|
|
|
return Backbone.Collection.extend({
|
2013-06-24 23:41:59 +00:00
|
|
|
|
model: SeasonModel,
|
2013-05-12 15:53:39 +00:00
|
|
|
|
|
2013-08-05 09:09:41 +00:00
|
|
|
|
comparator: function (season) {
|
|
|
|
|
return -season.get('seasonNumber');
|
2013-06-24 23:41:59 +00:00
|
|
|
|
}
|
|
|
|
|
});
|
2013-03-03 22:42:26 +00:00
|
|
|
|
});
|