fix(diff) applyPatch: results -> results[0]

This commit is contained in:
coderaiser 2013-11-12 10:45:34 +00:00
parent 610cd2c1fa
commit c8254b07cf

View file

@ -12,7 +12,7 @@
this.applyPatch = function(oldText, patch) {
var patches = dmp.patch_fromText(patch),
results = dmp.patch_apply(patches, oldText);
results = dmp.patch_apply(patches, oldText)[0];
return results;
};