parent
2eedfca78a
commit
cde1217356
@ -1,12 +1,14 @@
|
|||||||
var Backbone = require('backbone');
|
var Backbone = require('backbone');
|
||||||
var SeriesModel = require('../../Series/SeriesModel');
|
var SeriesModel = require('../../Series/SeriesModel');
|
||||||
var EpisodeModel = require('../../Series/EpisodeModel');
|
var EpisodeModel = require('../../Series/EpisodeModel');
|
||||||
|
var MovieModel = require('../../Movies/MovieModel');
|
||||||
|
|
||||||
module.exports = Backbone.Model.extend({
|
module.exports = Backbone.Model.extend({
|
||||||
parse : function(model) {
|
parse : function(model) {
|
||||||
model.series = new SeriesModel(model.series);
|
model.series = new SeriesModel(model.series);
|
||||||
model.episode = new EpisodeModel(model.episode);
|
model.episode = new EpisodeModel(model.episode);
|
||||||
model.episode.set('series', model.series);
|
model.episode.set('series', model.series);
|
||||||
|
model.movie = new MovieModel(model.movie);
|
||||||
return model;
|
return model;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in new issue