Binding signalr to cloned series collection

This commit is contained in:
Mark McDowall
2014-02-10 12:24:59 -08:00
parent f5d85b8f57
commit bc908e0440
3 changed files with 9 additions and 12 deletions

View File

@@ -8,8 +8,7 @@ define(
'api!series',
'Mixins/AsFilteredCollection',
'Mixins/AsPersistedStateCollection',
'moment',
'Mixins/backbone.signalr.mixin'
'moment'
], function (_, Backbone, PageableCollection, SeriesModel, SeriesData, AsFilteredCollection, AsPersistedStateCollection, Moment) {
var Collection = PageableCollection.extend({
url : window.NzbDrone.ApiRoot + '/series',
@@ -73,5 +72,5 @@ define(
var MixedIn = AsPersistedStateCollection.call(FilteredCollection);
var collection = new MixedIn(SeriesData, { full: true });
return collection.bindSignalR();
return collection;
});