Hello again,
I know what you mean, but that's not what I was wondering about. The Map keys
do stay the way they are (of course), only the values will be replaced. Or at
least the ones with a lowercase letter in the key's name.
Maybe my example wasn't that good ;) So here's another (better?) try:
------- Before -------
qx.OO.defineClass("application.Constants",
{
sLOGO_ICO : "myLogo.png",
myArray : ["works","fine"],
LOGO_ICO : "myLogo.png",
WHATEVER : "myLogo.png"
});
----------------------
------- After --------
qx.OO.defineClass("application.Constants",
{
sLOGO_ICO : $[123], // will be replaced by $[###]
myArray : [$[456],$[789]],
LOGO_ICO : "myLogo.png",
WHATEVER : "myLogo.png"
});
----------------------
Maybe this helps others too to understand my query.
Best Regards,
Peter
>> Peter Schneider <p.schneider <at> tis-gmbh.de> writes:
>>
>> Hi there,
>>
>> is there a reason why Map assignments in static classes that have an
>> all-uppercase key are not subject to string optimization?
>> (...)
>> I figured out, that the condition is explicitly checked in
>> stringoptimizer.py,
>> so I was wondering what could be the reason for that...is there any?...
>
> Hi Peter,
> Well, I use Maps for exchanging data via Qooxdoo RPC calls. the keys for the
> Map
> entries are upper case Strings, both in my Java backend and in the Qooxdoo
> frontend, so it would be bad if those keys got replaced in the frontend. :)
>
> I don't know if there is another reason but that's the only reason that comes
> to
> my mind right now.
>
> Regards,
> Daniel Haferkorn
>
> [...]
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel