fix(ot): keep pendingOps in StaleWithBuffer during applyClient
Co-authored-by: Philip Molares <philip.molares@udo.edu> Signed-off-by: Erik Michelson <github@erik.michelson.eu>
This commit is contained in:
committed by
Philip Molares
parent
c4841575c9
commit
5a5e12a693
@@ -282,7 +282,9 @@ ot.Client = (function (global) {
|
||||
|
||||
StaleWithBuffer.prototype.applyClient = function (client, operation) {
|
||||
var buffer = this.buffer.compose(operation);
|
||||
return new StaleWithBuffer(this.acknowlaged, buffer, client, this.revision);
|
||||
var swb = new StaleWithBuffer(this.acknowlaged, buffer, client, this.revision);
|
||||
swb.pendingOps = this.pendingOps;
|
||||
return swb;
|
||||
};
|
||||
|
||||
StaleWithBuffer.prototype.applyServer = function (client, revision, operation) {
|
||||
|
||||
4
public/vendor/ot/client.js
vendored
4
public/vendor/ot/client.js
vendored
@@ -282,7 +282,9 @@ ot.Client = (function (global) {
|
||||
|
||||
StaleWithBuffer.prototype.applyClient = function (client, operation) {
|
||||
var buffer = this.buffer.compose(operation);
|
||||
return new StaleWithBuffer(this.acknowlaged, buffer, client, this.revision);
|
||||
var swb = new StaleWithBuffer(this.acknowlaged, buffer, client, this.revision);
|
||||
swb.pendingOps = this.pendingOps;
|
||||
return swb;
|
||||
};
|
||||
|
||||
StaleWithBuffer.prototype.applyServer = function (client, revision, operation) {
|
||||
|
||||
Reference in New Issue
Block a user