зеркало из https://github.com/nextcloud/spreed.git
Start debugging
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Родитель
dd87d76cc8
Коммит
919445558b
|
@ -27,20 +27,30 @@
|
|||
OCA.SpreedMe.Models = OCA.SpreedMe.Models || {};
|
||||
|
||||
OCA.SpreedMe.Models.ParticipantCollection = Backbone.Collection.extend({
|
||||
room: undefined,
|
||||
initialise: function(models, options) {
|
||||
this.room = options.room;
|
||||
initialize: function() {
|
||||
console.log("initialize");
|
||||
console.log(arguments);
|
||||
},
|
||||
model: OCA.SpreedMe.Models.Participant,
|
||||
room: undefined,
|
||||
|
||||
/**
|
||||
* @param {OCA.SpreedMe.Models.Room} room
|
||||
* @returns {Array}
|
||||
*/
|
||||
setRoom: function(room) {
|
||||
this.room = room;
|
||||
this.url = OC.linkToOCS('apps/spreed/api/v1/room', 2) + '/' + this.room.get('token') + 'participants';
|
||||
},
|
||||
// comparator: function(model) {
|
||||
// return -(model.get('lastPing'));
|
||||
// },
|
||||
url: OC.linkToOCS('apps/spreed/api/v1/room', 2) + '/' + this.room.get('token') + 'participants',
|
||||
/**
|
||||
* @param result
|
||||
* @returns {Array}
|
||||
*/
|
||||
parse: function(result) {
|
||||
console.log(result);
|
||||
return result.ocs.data;
|
||||
}
|
||||
});
|
||||
|
|
|
@ -14,7 +14,10 @@ script(
|
|||
'vendor/backbone.marionette/lib/backbone.marionette.min',
|
||||
'models/room',
|
||||
'models/roomcollection',
|
||||
'models/participant',
|
||||
'models/participantcollection',
|
||||
'views/roomlistview',
|
||||
'views/participantview',
|
||||
'simplewebrtc',
|
||||
'webrtc',
|
||||
'signaling',
|
||||
|
|
Загрузка…
Ссылка в новой задаче