Skip to content

Commit

Permalink
Merge pull request #354 from Joris-van-der-Wel/memleakfix
Browse files Browse the repository at this point in the history
Fix for a typo that causes a memory leak
  • Loading branch information
nateps committed May 4, 2015
2 parents 837b2c8 + 45c7cf6 commit 7ce34d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/client/doc.js
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@ Doc.prototype._otApply = function(opData, context) {
if (c != context && c._onOp) c._onOp(opData.op);
}
for (var i = 0; i < contexts.length; i++) {
if (contexts.remove) contexts.splice(i--, 1);
if (contexts[i].remove) contexts.splice(i--, 1);
}

return this.emit('after op', opData.op, context);
Expand Down

0 comments on commit 7ce34d8

Please sign in to comment.