|
|
@ -70,14 +70,13 @@ define(
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|
|
|
|
|
|
|
|
templateHelpers: {},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
initialize: function (options) {
|
|
|
|
initialize: function (options) {
|
|
|
|
|
|
|
|
|
|
|
|
if (!options.episodeCollection) {
|
|
|
|
if (!options.episodeCollection) {
|
|
|
|
throw 'episodeCollection is needed';
|
|
|
|
throw 'episodeCollection is needed';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.templateHelpers = {};
|
|
|
|
this.episodeCollection = options.episodeCollection.bySeason(this.model.get('seasonNumber'));
|
|
|
|
this.episodeCollection = options.episodeCollection.bySeason(this.model.get('seasonNumber'));
|
|
|
|
this.series = options.series;
|
|
|
|
this.series = options.series;
|
|
|
|
|
|
|
|
|
|
|
|