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


The following commit(s) were added to refs/heads/develop by this push:
     new 1e83edb  try a different way of getting the moduleloader's child 
(sooner)
1e83edb is described below

commit 1e83edb76f735d164a13c044a8ae66b9e06061ce
Author: Alex Harui <[email protected]>
AuthorDate: Mon Jan 6 15:57:44 2020 -0800

    try a different way of getting the moduleloader's child (sooner)
---
 .../Basic/src/main/royale/org/apache/royale/utils/UIModuleUtils.as    | 2 +-
 .../projects/MXRoyale/src/main/royale/mx/modules/ModuleLoader.as      | 4 +---
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git 
a/frameworks/projects/Basic/src/main/royale/org/apache/royale/utils/UIModuleUtils.as
 
b/frameworks/projects/Basic/src/main/royale/org/apache/royale/utils/UIModuleUtils.as
index df24694..7b26852 100644
--- 
a/frameworks/projects/Basic/src/main/royale/org/apache/royale/utils/UIModuleUtils.as
+++ 
b/frameworks/projects/Basic/src/main/royale/org/apache/royale/utils/UIModuleUtils.as
@@ -223,7 +223,7 @@ package org.apache.royale.utils
             }
                }
         
-        private var moduleInstance:IUIBase;
+        public var moduleInstance:IUIBase;
         
         COMPILE::SWF
         protected function completeHandler(event:flash.events.Event):void
diff --git 
a/frameworks/projects/MXRoyale/src/main/royale/mx/modules/ModuleLoader.as 
b/frameworks/projects/MXRoyale/src/main/royale/mx/modules/ModuleLoader.as
index c774fb1..dd0bfab 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/modules/ModuleLoader.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/modules/ModuleLoader.as
@@ -279,9 +279,7 @@ public class ModuleLoader extends VBox
      */
     public function get child():Object //DisplayObject
     {
-        if (numElements)
-            return getElementAt(numElements - 1);
-        return null;
+        return utils.moduleInstance;
     }
 
     //----------------------------------

Reply via email to