sylvainfritsch opened a new issue #1011:
URL: https://github.com/apache/royale-asjs/issues/1011
Hello,
I am currently migrating a view from flex to the js version mx:royale. And i
have some problems with the bindings using <fx:Binding>.
In flex, i had the following code that does not work in the js version of
mx:royale.
<fx:Binding source="my_TextBox.text" destination="myobject.value" />
After a few tries i came up with
<fx:Binding source="my_TextBox.text" destination="this.myobject.value" />
This create an error in ViewDataBinding, as the compiled JS generates a
binding with a function "destFunc", instead of an array "destination".
This creates a bug at line 144-115 of ViewDataBinding.as, because
binding.destination is null
"else if (binding.source is Array
&& binding.source.length == 2 &&
binding.destination.length == 2)"
I tried with editing ViewDataBinding.js, to check for binding.destination !=
null, and everthing is fine after this.
And not only, there is no longer an error, but the binding seems to work
properly.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]