Clean the code

This commit is contained in:
yflory
2020-04-15 13:22:46 +02:00
parent d41c362d46
commit 88760fde6a
4 changed files with 494 additions and 471 deletions

View File

@@ -65,7 +65,6 @@ define([
sframeChan.query('Q_RT_MESSAGE', message, function (_err, obj) {
var err = _err || (obj && obj.error);
if (!err) { evPatchSent.fire(); }
console.error('cb', message);
cb(err);
}, { timeout: -1 });
});
@@ -138,7 +137,6 @@ define([
if (isReady) {
onLocal(true); // should be onBeforeMessage
}
console.error('received', content);
chainpad.message(content);
if (isHistory && updateLoadingProgress) {
updateLoadingProgress({

View File

@@ -58,7 +58,6 @@ define([
editor.save();
var ops = ChainPad.Diff.diff(oldDoc, remoteDoc);
console.log(ops);
var selects = ['selectionStart', 'selectionEnd'].map(function (attr) {
return TextCursor.transformCursor(oldCursor[attr], ops);
});