mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 13:33:34 -07:00
made RootFolderCollection, NotificationCollection singleton.
This commit is contained in:
parent
52d815b1d4
commit
a2496530ca
27 changed files with 639 additions and 14886 deletions
|
@ -1,6 +1,6 @@
|
|||
'use strict';
|
||||
|
||||
define(['app', 'AddSeries/Existing/UnmappedFolderModel', 'AddSeries/SearchResultCollection', 'Series/SeriesModel'], function () {
|
||||
define(['app', 'AddSeries/RootFolders/RootFolderCollection', 'AddSeries/Existing/UnmappedFolderModel', 'AddSeries/SearchResultCollection', 'Series/SeriesModel'], function (app,rootFolders) {
|
||||
|
||||
|
||||
NzbDrone.AddSeries.Existing.FolderMatchResultView = Backbone.Marionette.ItemView.extend({
|
||||
|
@ -127,13 +127,9 @@ define(['app', 'AddSeries/Existing/UnmappedFolderModel', 'AddSeries/SearchResult
|
|||
|
||||
itemView: NzbDrone.AddSeries.Existing.RootFolderCompositeView,
|
||||
|
||||
|
||||
|
||||
initialize: function () {
|
||||
|
||||
if (!this.collection) {
|
||||
throw "root folder collection is required.";
|
||||
}
|
||||
this.collection = rootFolders;
|
||||
|
||||
if (!this.options.quality) {
|
||||
throw "quality collection is required.";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue