1
0
Fork 0
mirror of https://github.com/Radarr/Radarr synced 2024-12-28 02:40:01 +00:00
Radarr/UI/Series/Details/SeasonCollectionView.js
2013-06-23 19:31:02 -07:00

28 lines
739 B
JavaScript

'use strict';
define(['app',
'Series/Details/SeasonLayout',
'Series/SeasonCollection',
'Series/EpisodeCollection'],
function (App, SeasonLayout, SeasonCollection, EpisodeCollection) {
NzbDrone.Series.Details.SeasonCollectionView = Backbone.Marionette.CollectionView.extend({
itemView : SeasonLayout,
initialize: function (options) {
if (!options.episodeCollection) {
throw 'episodeCollection is needed';
}
this.episodeCollection = options.episodeCollection;
},
itemViewOptions: function () {
return {
episodeCollection: this.episodeCollection
};
}
});
});