moved add series to require.

This commit is contained in:
kay.one 2013-06-20 22:19:41 -07:00
commit 72772bed5a
16 changed files with 181 additions and 185 deletions

View file

@ -1,15 +1,17 @@
"use strict";
define(
[
'app',
'backbone',
'AddSeries/RootFolders/Model',
'mixins/backbone.signalr.mixin'
], function () {
], function (Backbone, RootFolderModel) {
var rootFolderCollection = Backbone.Collection.extend({
url : NzbDrone.Constants.ApiRoot + '/rootfolder',
model: NzbDrone.AddSeries.RootFolders.RootFolderModel
model: RootFolderModel
});
return new rootFolderCollection().BindSignalR();
var collection = new rootFolderCollection().BindSignalR();
return collection;
});