Huh. I did not know about @flexjsemitcoercion. Good to know!
> On Mar 9, 2017, at 8:51 PM, Alex Harui <aha...@adobe.com> wrote: > > > > On 3/9/17, 10:44 AM, "Harbs" <harbs.li...@gmail.com> wrote: > >> Umm... I guess I was not thinking clearly. (exhaustion can do that…) ;-) >> I was thinking that the casting happens when compiling the app, but >> that’s not true as the js from the library is pre-compiled. >> >> However, I don’t think I can globally disable “as” in TLF, and I don’t >> think we can do that in the FlexJS SDK libs either. > > But we can turn it on where we need it. Basically, -skipAsCoercions and > @flexjsemitcoercion assume you don't want 99% of "as" usage and will > annotate where you need it. The default assumes you need it and will > @flexjsignorecoercion where you don't need it. The framework could > probably get away with assuming we don't need it. > > HTH, > -Alex >