2013-06-22 09:24:24 +03:00
|
|
|
'use strict';
|
2013-06-25 02:41:59 +03:00
|
|
|
define(
|
|
|
|
[
|
|
|
|
'backbone',
|
2013-07-17 09:23:44 +03:00
|
|
|
'moment',
|
2013-08-21 09:46:23 +03:00
|
|
|
'Series/SeriesModel',
|
|
|
|
'Series/EpisodeFileModel'
|
|
|
|
], function (Backbone, Moment, SeriesModel, EpisodeFileModel) {
|
2013-06-25 02:41:59 +03:00
|
|
|
return Backbone.Model.extend({
|
|
|
|
|
|
|
|
parse: function (model) {
|
|
|
|
|
2013-08-21 09:46:23 +03:00
|
|
|
if (model.episodeFile) {
|
|
|
|
model.episodeFile = new EpisodeFileModel(model.episodeFile);
|
|
|
|
}
|
|
|
|
|
2013-06-25 02:41:59 +03:00
|
|
|
return model;
|
|
|
|
},
|
2013-06-09 23:51:32 +03:00
|
|
|
|
2013-06-25 02:41:59 +03:00
|
|
|
defaults: {
|
|
|
|
seasonNumber: 0,
|
2013-06-29 03:35:21 +03:00
|
|
|
status : 0
|
2013-06-25 02:41:59 +03:00
|
|
|
}
|
|
|
|
});
|
2013-03-02 22:13:23 +03:00
|
|
|
});
|