royale-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Harui <>
Subject Re: MXML attributes, minification, and initialization
Date Mon, 04 Dec 2017 17:14:07 GMT

What is the generated data structure for that property?  How does the
generated data structure differ if the property is getter/setter?


On 12/4/17, 3:30 AM, "Yishay Weiss" <> wrote:

>We ran into an interesting problem with minification. If you have a
>component with an attribute that’s initialized like this:
>public var myProp:Boolean = false;
>and you try to initialize it from mxml (<comp myProp=”true”/>) the result
>will be myComp == true in debug and myComp == false in release.
>We found 2 ways around that: either don’t initialize (public var
>myProp:Boolean) or use get/set methods instead.
>I’m not sure what’s going on there but it’s something to watch out for.

View raw message