Error with ViewDataBinding and <fx:Binding>
- Dominant language
- ActionScript
- Stars
- 380
- Forks
- 120
- PR merge metrics
- No merged PRs in 30d
Description
Hello,
I am currently migrating a view from flex to the js version mx:royale. And i have some problems with the bindings using .
In flex, i had the following code that does not work in the js version of mx:royale.
After a few tries i came up with
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.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with ViewDataBinding.as, especially the condition around binding.source and binding.destination, and compare it with the generated ViewDataBinding.js behavior described in the report. Reproduce the migration using the shown source and destination forms; done means the binding no longer errors and continues to update the target value.
Written by the indexing model from the issue text.
Assessment
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100