lint compliance
This commit is contained in:
@@ -33,7 +33,6 @@ define([
|
||||
var onMigrated = function () {
|
||||
oldFo.fixFiles(true);
|
||||
var manager = proxyData.manager;
|
||||
var oldRecentPads = parsed.drive[oldFo.FILES_DATA];
|
||||
var oldFiles = oldFo.getFiles([oldFo.FILES_DATA]);
|
||||
oldFiles.forEach(function (id) {
|
||||
var data = oldFo.getFileData(id);
|
||||
|
||||
@@ -1185,12 +1185,11 @@ define([
|
||||
}));
|
||||
}).nThen(function (waitFor) {
|
||||
// 2a. add the shared folder to the path in our drive
|
||||
console.log('adding');
|
||||
store.userObject.add(id, path);
|
||||
onSync(waitFor());
|
||||
|
||||
// 2b. load the proxy
|
||||
rt = loadSharedFolder(id, data.folderData, waitFor(function () {
|
||||
loadSharedFolder(id, data.folderData, waitFor(function (rt) {
|
||||
if (data.metadata) { // Creating a new shared folder
|
||||
rt.proxy.metadata = data.metadata;
|
||||
onSync(waitFor());
|
||||
|
||||
@@ -92,7 +92,7 @@ define([
|
||||
var fd = exp.getFileData(id);
|
||||
var channelId = fd.channel;
|
||||
// If trying to remove an owned pad, remove it from server also
|
||||
if (!isOwnPadRemoved &&
|
||||
if (!isOwnPadRemoved && !sharedFolder &&
|
||||
fd.owners && fd.owners.indexOf(edPublic) !== -1 && channelId) {
|
||||
removeOwnedChannel(channelId, function (obj) {
|
||||
if (obj && obj.error) {
|
||||
@@ -113,10 +113,6 @@ define([
|
||||
});
|
||||
if (!toClean.length) { return; }
|
||||
cb(null, toClean);
|
||||
unpinPads(toClean, function (response) {
|
||||
if (response && response.error) { return console.error(response.error); }
|
||||
// console.error(response);
|
||||
});
|
||||
};
|
||||
var deleteHrefs = function (ids) {
|
||||
ids.forEach(function (obj) {
|
||||
|
||||
@@ -17,7 +17,6 @@ define([
|
||||
|
||||
module.init = function (files, config) {
|
||||
var exp = {};
|
||||
var pinPads = config.pinPads;
|
||||
var sframeChan = config.sframeChan;
|
||||
|
||||
var FILES_DATA = module.FILES_DATA = exp.FILES_DATA = Constants.storageKey;
|
||||
|
||||
Reference in New Issue
Block a user