sonarr-repo-only/UI/Series/EpisodeModel.js

26 lines
587 B
JavaScript
Raw Normal View History

2013-06-22 06:24:24 +00:00
'use strict';
define(
[
'backbone',
'moment',
2013-08-21 06:46:23 +00:00
'Series/SeriesModel',
'Series/EpisodeFileModel'
], function (Backbone, Moment, SeriesModel, EpisodeFileModel) {
return Backbone.Model.extend({
parse: function (model) {
2013-08-21 06:46:23 +00:00
if (model.episodeFile) {
model.episodeFile = new EpisodeFileModel(model.episodeFile);
}
return model;
},
defaults: {
seasonNumber: 0,
status : 0
}
});
2013-03-02 19:13:23 +00:00
});