Nick Glencross schrieb:
> Hugh Gibson wrote:
>
>>> Yes, you an control it in the HTML itself, so for instance, I have:
>>>
>> For 0.6.5 this is:
>>
>> //
>> // Set up logging as appropriate
>> //
>> if (qx.IS_SOURCE)
>> {
>> qx.log.Logger.ROOT_LOGGER.setMinLevel(qx.log.Logger.LEVEL_DEBUG);
>> }
>> else
>> {
>> qx.log.Logger.ROOT_LOGGER.setMinLevel(qx.log.Logger.LEVEL_ERROR);
>> };
>>
>
>
> And at the next release it looks like it will be:
>
> if (qx.core.Setting.get("qx.isSource")) {...}
>
> which will normally be optimised away during 'make build',
>
> Regards,
>
> Nick
>
>
Hi Nick, hi Hugh,
this is only partially right. The line above really replaces the old
qx.IS_SOURCE but it is a setting and the compiler is not able to
optimize settings. To do these optimizations we have added a new concept
we call variants. If the code above should be removed from the build you
have to use:
if (qx.core.Variant("qx.debug", "on")) {
... // in source version
} else {
... // in build version
}
Best Fabian
-------------------------------------------------------------------------
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