You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ah...@apache.org on 2018/11/16 06:50:35 UTC

[royale-asjs] 08/10: get more of MXTests working again

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 00eba2b94c79dca20ea284d4972b5e90816ee1ae
Author: Alex Harui <ah...@apache.org>
AuthorDate: Thu Nov 15 15:41:04 2018 -0800

    get more of MXTests working again
---
 frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as b/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as
index aefa0cc..d74074a 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as
@@ -1613,7 +1613,8 @@ COMPILE::JS
             var child:IFlexModule = getChildAt(i) as IFlexModule;
             if (!child)
                 continue;
-            
+            if (child == this)
+                continue;  // in the browser, some child HTMLElements reference the main component
             if (child.moduleFactory == null || child.moduleFactory == _moduleFactory)
             {
                 child.moduleFactory = factory;