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