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

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

commit d7be3307e6fe9671f6481baa7665b18fa1f12f3c
Author: Alex Harui <aha...@apache.org>
AuthorDate: Thu Apr 12 15:56:06 2018 -0700

    move filling in id slot before adding to displaylist so initialize event 
handlers can reference the slot
---
 .../royale/org/apache/royale/utils/MXMLDataInterpreter.as    | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git 
a/frameworks/projects/Core/src/main/royale/org/apache/royale/utils/MXMLDataInterpreter.as
 
b/frameworks/projects/Core/src/main/royale/org/apache/royale/utils/MXMLDataInterpreter.as
index 338f295..b6ced0f 100644
--- 
a/frameworks/projects/Core/src/main/royale/org/apache/royale/utils/MXMLDataInterpreter.as
+++ 
b/frameworks/projects/Core/src/main/royale/org/apache/royale/utils/MXMLDataInterpreter.as
@@ -296,6 +296,12 @@ public class MXMLDataInterpreter
             }
         }
         
+        if (id)
+            document[id] = comp;
+        
+        if (comp is IDocument)
+            comp.setDocument(document, id);
+        
         var children:Array = data[i++];
         if (children && comp is IMXMLDocument)
         {
@@ -320,12 +326,6 @@ public class MXMLDataInterpreter
             }
         }
         
-        if (id)
-            document[id] = comp;
-        
-        if (comp is IDocument)
-            comp.setDocument(document, id);
-                
         return i;
     }
     

-- 
To stop receiving notification emails like this one, please contact
aha...@apache.org.

Reply via email to