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