mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-30 19:56:54 +00:00
27 lines
650 B
JavaScript
27 lines
650 B
JavaScript
|
'use strict';
|
||
|
define(
|
||
|
[
|
||
|
'marionette',
|
||
|
'SeasonPass/SeriesLayout'
|
||
|
], function (Marionette, SeriesLayout) {
|
||
|
return Marionette.CollectionView.extend({
|
||
|
|
||
|
itemView: SeriesLayout,
|
||
|
|
||
|
initialize: function (options) {
|
||
|
|
||
|
if (!options.seasonCollection) {
|
||
|
throw 'seasonCollection is needed';
|
||
|
}
|
||
|
|
||
|
this.seasonCollection = options.seasonCollection;
|
||
|
},
|
||
|
|
||
|
itemViewOptions: function () {
|
||
|
return {
|
||
|
seasonCollection: this.seasonCollection
|
||
|
};
|
||
|
}
|
||
|
});
|
||
|
});
|