@ -1598,7 +1598,7 @@ define([
onCacheStart: function () {
postMessage(clientId, "PAD_CACHE");
},
onCacheReady: function (info) {
onCacheReady: function () {
postMessage(clientId, "PAD_CACHE_READY");
onReady: function (pad) {
@ -53,8 +53,8 @@ define([
});
};
S.clearChannel = function (id, cb) {
cb = Util.once(Util.mkAsync(cb || function () {}));
S.clearChannel = function (id, _cb) {
cb = Util.once(Util.mkAsync(_cb || function () {}));
cache.removeItem(id, cb);
@ -497,7 +497,7 @@ define([
cpNfInner.metadataMgr.updateMetadata(metadata);
newContent = normalize(newContent);
if (!unsyncMode) {
contentUpdate(newContent, function () { return function () {}});
contentUpdate(newContent, function () { return function () {}; });
}
UI.removeLoadingScreen(emitResize);
@ -94,7 +94,7 @@ define([
evInfiniteSpinner.fire();
}, 2000);
sframeChan.on('EV_RT_CACHE_READY', function (isPermanent) {
sframeChan.on('EV_RT_CACHE_READY', function () {
onCacheReady({realtime: chainpad});
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);
Cryptpad.onCorruptedCache(secret.channel);