mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 05:23:31 -07:00
removed NzbDrone. namespace, everything is done using require.
This commit is contained in:
parent
ef62af75df
commit
b0bd3f34f1
121 changed files with 2570 additions and 2587 deletions
|
@ -1,28 +1,28 @@
|
|||
'use strict';
|
||||
define(['app',
|
||||
'Series/Details/SeasonLayout',
|
||||
'Series/SeasonCollection',
|
||||
'Series/EpisodeCollection'],
|
||||
function (App, SeasonLayout, SeasonCollection, EpisodeCollection) {
|
||||
NzbDrone.Series.Details.SeasonCollectionView = Backbone.Marionette.CollectionView.extend({
|
||||
define(
|
||||
[
|
||||
'marionette',
|
||||
'Series/Details/SeasonLayout'
|
||||
], function (Marionette, SeasonLayout) {
|
||||
return Marionette.CollectionView.extend({
|
||||
|
||||
itemView : SeasonLayout,
|
||||
itemView: SeasonLayout,
|
||||
|
||||
initialize: function (options) {
|
||||
initialize: function (options) {
|
||||
|
||||
if (!options.episodeCollection) {
|
||||
throw 'episodeCollection is needed';
|
||||
if (!options.episodeCollection) {
|
||||
throw 'episodeCollection is needed';
|
||||
}
|
||||
|
||||
this.episodeCollection = options.episodeCollection;
|
||||
|
||||
},
|
||||
|
||||
itemViewOptions: function () {
|
||||
return {
|
||||
episodeCollection: this.episodeCollection
|
||||
};
|
||||
}
|
||||
|
||||
this.episodeCollection = options.episodeCollection;
|
||||
|
||||
},
|
||||
|
||||
itemViewOptions: function () {
|
||||
return {
|
||||
episodeCollection: this.episodeCollection
|
||||
};
|
||||
}
|
||||
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue