2013-06-28 23:06:16 +00:00
|
|
|
|
'use strict';
|
2013-06-24 23:41:59 +00:00
|
|
|
|
define(
|
|
|
|
|
[
|
|
|
|
|
'backbone',
|
|
|
|
|
'Series/SeriesModel'
|
|
|
|
|
], function (Backbone, SeriesModel) {
|
2013-06-28 23:06:16 +00:00
|
|
|
|
var collection = Backbone.Collection.extend({
|
2013-06-24 23:41:59 +00:00
|
|
|
|
url : window.ApiRoot + '/series',
|
|
|
|
|
model: SeriesModel,
|
2013-05-02 07:09:35 +00:00
|
|
|
|
|
2013-06-24 23:41:59 +00:00
|
|
|
|
comparator: function (model) {
|
|
|
|
|
return model.get('title');
|
|
|
|
|
},
|
2013-05-02 07:09:35 +00:00
|
|
|
|
|
2013-06-24 23:41:59 +00:00
|
|
|
|
state: {
|
|
|
|
|
sortKey: 'title',
|
|
|
|
|
order : -1
|
|
|
|
|
}
|
|
|
|
|
});
|
2013-06-28 23:06:16 +00:00
|
|
|
|
|
|
|
|
|
return new collection();
|
2013-02-14 18:01:30 +00:00
|
|
|
|
});
|