This is an automated email from the ASF dual-hosted git repository.

aharui pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git

commit a0cfda8ed031147d78205ee8004bfe0b0984293b
Author: Alex Harui <[email protected]>
AuthorDate: Tue Aug 13 20:12:34 2019 -0700

    set mxmldocument as early as possible
---
 frameworks/projects/MXRoyale/src/main/royale/mx/core/Container.as | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/core/Container.as 
b/frameworks/projects/MXRoyale/src/main/royale/mx/core/Container.as
index 1dfeb3b..577df42 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/core/Container.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/core/Container.as
@@ -779,9 +779,6 @@ public class Container extends UIComponent
                        ValuesManager.valuesImpl.init(this);
                }
                
-        if (MXMLDescriptor)
-            _mxmlDocument = this;
-        
                super.addedToParent();          
                
                // Load the layout bead if it hasn't already been loaded.
@@ -850,6 +847,8 @@ public class Container extends UIComponent
         */
        public function generateMXMLAttributes(data:Array):void
        {
+        if (!_mxmlDocument)
+            _mxmlDocument = this;
                MXMLDataInterpreter.generateMXMLProperties(this, data);
        }
        

Reply via email to