|
|
@ -1093,14 +1093,16 @@ var handleMessage = ChainPad.handleMessage = function (realtime, msgStr) {
|
|
|
|
Common.assert(newUserInterfaceContent === realtime.userInterfaceContent);
|
|
|
|
Common.assert(newUserInterfaceContent === realtime.userInterfaceContent);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// push the uncommittedPatch out to the user interface.
|
|
|
|
if (uncommittedPatch.operations.length) {
|
|
|
|
for (var i = 0; i < realtime.patchHandlers.length; i++) {
|
|
|
|
// push the uncommittedPatch out to the user interface.
|
|
|
|
realtime.patchHandlers[i](uncommittedPatch);
|
|
|
|
for (var i = 0; i < realtime.patchHandlers.length; i++) {
|
|
|
|
}
|
|
|
|
realtime.patchHandlers[i](uncommittedPatch);
|
|
|
|
if (realtime.opHandlers.length) {
|
|
|
|
}
|
|
|
|
for (var i = uncommittedPatch.operations.length-1; i >= 0; i--) {
|
|
|
|
if (realtime.opHandlers.length) {
|
|
|
|
for (var j = 0; j < realtime.opHandlers.length; j++) {
|
|
|
|
for (var i = uncommittedPatch.operations.length-1; i >= 0; i--) {
|
|
|
|
realtime.opHandlers[j](uncommittedPatch.operations[i]);
|
|
|
|
for (var j = 0; j < realtime.opHandlers.length; j++) {
|
|
|
|
|
|
|
|
realtime.opHandlers[j](uncommittedPatch.operations[i]);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|