1
1
mirror of https://github.com/github/semantic.git synced 2024-12-26 16:33:03 +03:00

Assign patch ranges to Diff.Pures.

This commit is contained in:
Rob Rix 2015-10-23 11:14:45 -04:00
parent c3e740ab8e
commit f1d60da274

View File

@ -232,7 +232,11 @@
}
function Diff(json, a, b) {
if (json.pure != null) { this.pure = patch(json.pure, a, b); }
if (json.pure != null) {
this.pure = patch(json.pure, a, b);
this.range = this.pure.range;
this.source = this.pure.source;
}
if (json.roll != null) {
this.ranges = json.roll.extract;
this.sources = { "a": a, "b": b };