Issue #225 AS1/2 object literal does not permit quotes in names

This commit is contained in:
Jindra Pet��k
2013-07-18 22:33:54 +02:00
parent 6d99c0b1ca
commit 9abc8c82dd
@@ -46,7 +46,7 @@ public class InitObjectActionItem extends ActionItem {
if (values.get(i) instanceof TernarOpItem) { //Ternar operator contains ":"
valueStr = "(" + valueStr + ")";
}
objStr += names.get(i).toString(constants) + hilight(":") + valueStr;
objStr += names.get(i).toStringNoQuotes(constants) + hilight(":") + valueStr; //AS1/2 do not allow quotes in name here
}
return hilight("{") + objStr + hilight("}");
}