1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2025-01-21 11:02:01 +02:00
Sonarr/UI/History/Model.js

17 lines
494 B
JavaScript
Raw Normal View History

2013-06-24 22:12:42 -07:00
'use strict';
define(
[
'backbone',
'Series/SeriesModel',
'Series/EpisodeModel'
], function (Backbone, SeriesModel, EpisodeModel) {
return Backbone.Model.extend({
parse: function (model) {
model.series = new SeriesModel(model.series);
model.episode = new EpisodeModel(model.episode);
2013-07-10 23:52:04 -07:00
model.episode.set('series', model.series);
return model;
2013-05-10 15:33:04 -07:00
}
});
2013-05-02 23:53:32 -07:00
});