Teams: async-store refactoring

This commit is contained in:
yflory
2019-09-06 15:45:56 +02:00
parent 2b57d82e8a
commit 834e12fcba
8 changed files with 171 additions and 110 deletions

View File

@@ -36,6 +36,7 @@ define([
// load manager with userObject
// team.manager =... team.userObject = ....
// load shared folders
// register event for these folders
// ~resetPins for the team?
// getPinLimit
ctx.teams[id] = team;
@@ -63,6 +64,9 @@ define([
lm.proxy.on('create', function () {
}).on('ready', function () {
var sendEvent = function (type, data, sender) {
type = type;
data = data;
sender = sender;
// XXX emit UPDATE event to the inner iframe
// don't send the event back to the sender
// types are DRIVE_CHANGE, DRIVE_REMOVE and DRIVE_LOG