tools/props.html: output complete JSON
authorMihai Bazon <mihai.bazon@gmail.com>
Thu, 19 Mar 2015 08:10:01 +0000 (10:10 +0200)
committerMihai Bazon <mihai.bazon@gmail.com>
Thu, 19 Mar 2015 08:10:01 +0000 (10:10 +0200)
tools/props.html

index ff09a8d..576e143 100644 (file)
       ta.style.width = "100%";
       ta.style.height = "20em";
       ta.style.boxSizing = "border-box";
-      ta.value = Object.keys(props).sort(cmp).map(function(name){
-        return JSON.stringify(name);
-      }).join(",\n");
+      <!-- ta.value = Object.keys(props).sort(cmp).map(function(name){ -->
+      <!--   return JSON.stringify(name); -->
+      <!-- }).join(",\n"); -->
+      ta.value = JSON.stringify({
+        vars: [],
+        props: Object.keys(props).sort(cmp)
+      }, null, 2);
       document.body.appendChild(ta);
 
       function cmp(a, b) {