Clean the code
This commit is contained in:
@@ -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({
|
||||
|
||||
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user