You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
650 B
27 lines
650 B
12 years ago
|
'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
|
||
|
};
|
||
|
}
|
||
|
});
|
||
|
});
|