lint compliance

pull/1/head
yflory 4 years ago
parent e998c21691
commit e37cf4b59c

@ -1598,7 +1598,7 @@ define([
onCacheStart: function () { onCacheStart: function () {
postMessage(clientId, "PAD_CACHE"); postMessage(clientId, "PAD_CACHE");
}, },
onCacheReady: function (info) { onCacheReady: function () {
postMessage(clientId, "PAD_CACHE_READY"); postMessage(clientId, "PAD_CACHE_READY");
}, },
onReady: function (pad) { onReady: function (pad) {

@ -53,8 +53,8 @@ define([
}); });
}; };
S.clearChannel = function (id, cb) { S.clearChannel = function (id, _cb) {
cb = Util.once(Util.mkAsync(cb || function () {})); cb = Util.once(Util.mkAsync(_cb || function () {}));
cache.removeItem(id, cb); cache.removeItem(id, cb);
}; };

@ -497,7 +497,7 @@ define([
cpNfInner.metadataMgr.updateMetadata(metadata); cpNfInner.metadataMgr.updateMetadata(metadata);
newContent = normalize(newContent); newContent = normalize(newContent);
if (!unsyncMode) { if (!unsyncMode) {
contentUpdate(newContent, function () { return function () {}}); contentUpdate(newContent, function () { return function () {}; });
} }
UI.removeLoadingScreen(emitResize); UI.removeLoadingScreen(emitResize);

@ -94,7 +94,7 @@ define([
evInfiniteSpinner.fire(); evInfiniteSpinner.fire();
}, 2000); }, 2000);
sframeChan.on('EV_RT_CACHE_READY', function (isPermanent) { sframeChan.on('EV_RT_CACHE_READY', function () {
onCacheReady({realtime: chainpad}); onCacheReady({realtime: chainpad});
}); });
sframeChan.on('EV_RT_DISCONNECT', function (isPermanent) { sframeChan.on('EV_RT_DISCONNECT', function (isPermanent) {

@ -1637,7 +1637,7 @@ define([
}); });
}; };
sframeChan.on('Q_CORRUPTED_CACHE', function (cb) { sframeChan.on('Q_CORRUPTED_CACHE', function (data, cb) {
Utils.Cache.clearChannel(secret.channel, cb); Utils.Cache.clearChannel(secret.channel, cb);
Cryptpad.onCorruptedCache(secret.channel); Cryptpad.onCorruptedCache(secret.channel);
}); });

Loading…
Cancel
Save