2013-06-25 01:41:59 +02:00
|
|
|
|
'use strict';
|
2013-06-21 03:43:58 +02:00
|
|
|
|
define(
|
|
|
|
|
[
|
2013-06-21 07:19:41 +02:00
|
|
|
|
'backbone',
|
2013-06-21 03:43:58 +02:00
|
|
|
|
'AddSeries/RootFolders/Model',
|
|
|
|
|
'mixins/backbone.signalr.mixin'
|
2013-06-21 07:19:41 +02:00
|
|
|
|
], function (Backbone, RootFolderModel) {
|
2013-06-21 03:43:58 +02:00
|
|
|
|
|
2013-06-25 01:41:59 +02:00
|
|
|
|
var RootFolderCollection = Backbone.Collection.extend({
|
|
|
|
|
url : window.ApiRoot + '/rootfolder',
|
2013-06-21 07:19:41 +02:00
|
|
|
|
model: RootFolderModel
|
2013-06-21 03:43:58 +02:00
|
|
|
|
});
|
|
|
|
|
|
2013-06-25 01:41:59 +02:00
|
|
|
|
var collection = new RootFolderCollection().BindSignalR();
|
2013-06-21 07:19:41 +02:00
|
|
|
|
|
|
|
|
|
return collection;
|
2013-06-21 03:43:58 +02:00
|
|
|
|
});
|