Clean some code

pull/1/head
yflory 5 years ago
parent 670d845262
commit fd7567188b

@ -1524,10 +1524,12 @@ define([
});
};
Store.addSharedFolder = function (clientId, data, cb) {
Store.userObjectCommand(clientId, {
cmd: 'addSharedFolder',
data: data
}, cb);
store.manager.addSharedFolder(data, function (id) {
sendDriveEvent('DRIVE_CHANGE', {
path: ['drive', UserObject.FILES_DATA]
}, clientId);
cb(id);
});
};
// Drive

@ -458,7 +458,9 @@ define([
}
}));
}).nThen(function () {
cb(id);
Env.onSync(function () {
cb(id);
});
});
};
@ -935,6 +937,7 @@ define([
// Manager
addProxy: callWithEnv(addProxy),
removeProxy: callWithEnv(removeProxy),
addSharedFolder: callWithEnv(addSharedFolder);
// Drive
command: callWithEnv(onCommand),
getPadAttribute: callWithEnv(getPadAttribute),

Loading…
Cancel
Save