aharui commented on issue #440: UiComponent.component being set to wrong value
URL: https://github.com/apache/royale-asjs/issues/440#issuecomment-517929944
 
 
   UIComponent.component is supposed to replace the Flex UIComponent.document.  
"document" is a reserved word in JS so we gave it a new name (although maybe we 
should have named it "mxmlDocument".  You can make a Flex app and see how/where 
it sets UIComponent.document.  Royale should set UIComponent.component the same 
way.
   
   However, if the compiler is responsible for generating code to set 
UIComponent.document, we may want to find a way to set it in AS code in Royale 
so the compiler doesn't have framework-dependent code generation.  In Royale, 
MXML-capable components have different APIs in their lifecycle so that could be 
a good place to set things.

----------------------------------------------------------------
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]


With regards,
Apache Git Services

Reply via email to