Interesting.

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

Thanks,
-Alex

On 12/4/17, 3:30 AM, "Yishay Weiss" <yishayj...@hotmail.com> 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.
>

Reply via email to