mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-11-01 08:22:35 +01:00
29 lines
662 B
JavaScript
29 lines
662 B
JavaScript
'use strict';
|
|
define(
|
|
[
|
|
'marionette',
|
|
'Series/Details/SeasonLayout'
|
|
], function (Marionette, SeasonLayout) {
|
|
return 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
|
|
};
|
|
}
|
|
|
|
});
|
|
});
|