From 08927d06b5e1f9b2f626aaffb1ad4dd94999b133 Mon Sep 17 00:00:00 2001 From: Rob Rix Date: Fri, 23 Oct 2015 18:23:25 -0400 Subject: [PATCH] Construct Syntax values correctly. --- prototype/UI/index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/prototype/UI/index.html b/prototype/UI/index.html index 8993f266e..d9b2229ff 100644 --- a/prototype/UI/index.html +++ b/prototype/UI/index.html @@ -224,9 +224,9 @@ } function Syntax(json, continuation) { - if (json instanceof Array) { this.indexed = json.map(continuation); } - else if (json instanceof Object) { this.keyed = (new Dictionary(json)).map(continuation); } - else this.leaf = json; + if (json.indexed != null) { this.indexed = json.map(continuation); } + if (json.keyed != null) { this.keyed = (new Dictionary(json)).map(continuation); } + if (json.leaf != null) { this.leaf = json; } return this; }