1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-26 01:50:28 +00:00

Fixed problem with property names that need quoting

This commit is contained in:
Jeremy Ruston 2012-01-31 11:58:53 +00:00
parent ddfa6732a6
commit 6f027c3b49

View File

@ -103,8 +103,9 @@ JavaScriptParseTree.prototype.renderNode = function(output,node) {
output.push("}"); output.push("}");
break; break;
case "PropertyAssignment": case "PropertyAssignment":
output.push("'");
output.push(node.name); output.push(node.name);
output.push(":"); output.push("':");
this.renderNode(output,node.value); this.renderNode(output,node.value);
break; break;
case "BinaryExpression": case "BinaryExpression":