diff --git a/lib/ot/client.js b/lib/ot/client.js index c4384e88..4c90d8ce 100755 --- a/lib/ot/client.js +++ b/lib/ot/client.js @@ -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) { diff --git a/public/vendor/ot/client.js b/public/vendor/ot/client.js index c4384e88..4c90d8ce 100644 --- a/public/vendor/ot/client.js +++ b/public/vendor/ot/client.js @@ -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) {