Refactored stringily not to add the double quotes

This commit is contained in:
Jeremy Ruston 2012-01-24 18:09:54 +00:00
parent b32826f110
commit b92e011c66
2 changed files with 6 additions and 5 deletions

View file

@ -52,10 +52,10 @@ JavaScriptParseTree.prototype.renderNode = function(output,node) {
var p;
switch(node.type) {
case "StringLiteral":
output.push(utils.stringify(node.value));
output.push('"' + utils.stringify(node.value) + '"');
break;
case "StringLiterals":
output.push(utils.stringify(node.value.join("")));
output.push('"' + utils.stringify(node.value.join("")) + '"');
break;
case "FunctionCall":
output.push("(");