don't rely on 'info' in onRemote so we can call it anywhere

This commit is contained in:
ansuz 2017-04-13 19:46:38 +02:00
parent 3e421c7289
commit 50277cb0ae
3 changed files with 5 additions and 5 deletions

View File

@ -646,7 +646,7 @@ define([
return cursor;
};
var onRemote = config.onRemote = function (info) {
var onRemote = config.onRemote = function () {
if (initializing) { return; }
var scroll = editor.getScrollInfo();

View File

@ -475,12 +475,12 @@ define([
}
};
var onRemote = realtimeOptions.onRemote = function (info) {
var onRemote = realtimeOptions.onRemote = function () {
if (initializing) { return; }
var oldShjson = stringifyDOM(inner);
var shjson = info.realtime.getUserDoc();
var shjson = module.realtime.getUserDoc();
// remember where the cursor is
cursor.update();
@ -679,7 +679,7 @@ define([
module.users = info.userList.users;
module.realtime = info.realtime;
var shjson = info.realtime.getUserDoc();
var shjson = module.realtime.getUserDoc();
var newPad = false;
if (shjson === '') { newPad = true; }

View File

@ -840,7 +840,7 @@ define([
return cursor;
};
var onRemote = config.onRemote = function (info) {
var onRemote = config.onRemote = function () {
if (initializing) { return; }
var scroll = editor.getScrollInfo();