1
1
mirror of https://github.com/github/semantic.git synced 2024-11-29 02:44:36 +03:00

Construct Diffs recursively.

This commit is contained in:
Rob Rix 2015-10-21 16:26:36 -04:00
parent be2e6f9a44
commit 276f95c669

View File

@ -122,7 +122,7 @@
function Diff(json, a, b) {
if (json.pure != null) { this.pure = patch(json.pure, a, b); }
if (json.roll != null) { this.roll = syntax(json.roll, a, b, diff); }
if (json.roll != null) { this.roll = syntax(json.roll, a, b, function(x, a, b) { return new Diff(x, a, b); }); }
return this;
}
</script>