Are you using the nightly build?  There's been a fair amount of changes to
what [Bindable] does since 0.7.0.  Could still be bugs in there though.

[Bindable] can have a great effect on the generated code.  It changes the
super class from Object to EventDispatcher and then converts every var to
a get/set pair.  If you remove [Bindable] then changes to the vars on this
class will not be detected after initialization.

If you can show us the generated code and the error it might give us a
clue.

-Alex

On 9/29/16, 2:06 PM, "OK" <p...@olafkrueger.net> wrote:

>Hi,
>while porting the PureMVC employee admin demo to FlexJS I stumbled over
>another issue which I don't understand:
>The demo makes use of a 'typesafe enum pattern' which class that
>implements
>it is declared as 'Bindable' [1].
>It compiles without any errors or warnings and the swf side works fine.
>But for the JS side it throws a silent 'TypeError: value is undefined' and
>so it doesn't work.
>If I remove the 'Bindable' tag from the class it works fine.
>
>To be clear:
>I don't need to make the class Bindable but I'd like to understand this
>behaviour.
>There were no hints by the compiler and the browsers TypeError doesn't
>point
>me to the right direction so I was lost for a while.
>Is this issue maybe based on the 'circular dependency' thing?
>
>Thanks,
>Olaf
>
>
>[1]
>https://github.com/PureMVC/puremvc-as3-demo-flex-employeeadmin/blob/master
>/src/org/puremvc/as3/demos/flex/employeeadmin/model/enum/DeptEnum.as
>
>
>
>
>--
>View this message in context:
>http://apache-flex-development.2333347.n4.nabble.com/FlexJS-Issue-with-bin
>dable-class-tp55468.html
>Sent from the Apache Flex Development mailing list archive at Nabble.com.

Reply via email to