diff --git a/www/common/chainpad.js b/www/common/chainpad.js index 071c595e8..ba8a4d8ca 100644 --- a/www/common/chainpad.js +++ b/www/common/chainpad.js @@ -220,7 +220,7 @@ var transform = Patch.transform = function (origToTransform, transformBy, doc, t Common.assert(origToTransform.parentHash === transformBy.parentHash); var resultOfTransformBy = apply(transformBy, doc); - toTransform = clone(origToTransform); + var toTransform = clone(origToTransform); var text = doc; for (var i = toTransform.operations.length-1; i >= 0; i--) { /* this line caused diffs to be applied against the incorrect text