diff --git a/prototype/UI/index.html b/prototype/UI/index.html index 9424667d3..f978e4243 100644 --- a/prototype/UI/index.html +++ b/prototype/UI/index.html @@ -120,9 +120,10 @@ return new Leaf(json, a, b); } - function diff(json, a, b) { - if (json.pure != null) { return patch(json.pure, a, b); } - if (json.roll != null) { return syntax(json.roll, a, b, diff); } + 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); } + return this; } @@ -131,7 +132,7 @@