aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMihai Bazon <mihai.bazon@gmail.com>2015-03-19 10:10:01 +0200
committerMihai Bazon <mihai.bazon@gmail.com>2015-03-19 10:10:01 +0200
commitbb010c225388604b423ad70a9d8203dc2cd3cc56 (patch)
tree89a55b10e53c679cefa72a57b42fd6ef1e37cb9f /tools
parent03b61211941955577c82ef98afa423b1ef0f8225 (diff)
downloadtracifyjs-bb010c225388604b423ad70a9d8203dc2cd3cc56.tar.gz
tracifyjs-bb010c225388604b423ad70a9d8203dc2cd3cc56.zip
tools/props.html: output complete JSON
Diffstat (limited to 'tools')
-rw-r--r--tools/props.html10
1 files changed, 7 insertions, 3 deletions
diff --git a/tools/props.html b/tools/props.html
index ff09a8da..576e1436 100644
--- a/tools/props.html
+++ b/tools/props.html
@@ -42,9 +42,13 @@
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) {