diff --git a/lib/diff.js b/lib/diff.js index b0e44ecf..21ed339c 100644 --- a/lib/diff.js +++ b/lib/diff.js @@ -12,9 +12,10 @@ this.applyPatch = function(oldText, patch) { var patches = dmp.patch_fromText(patch), - results = dmp.patch_apply(patches, oldText)[0]; + result = dmp.patch_apply(patches, oldText); + newText = result[0]; - return results; + return newText; }; }; })(this);