refactor(diff) applyPatch

This commit is contained in:
coderaiser 2013-11-12 11:16:20 +00:00
parent c8254b07cf
commit 30be394ace

View file

@ -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);