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 633499b check to see if moduleInstance is still parented before
removing. Should fix #523
633499b is described below
commit 633499b85efe937dd4ae355b11117f831b763508
Author: Alex Harui <[email protected]>
AuthorDate: Tue Oct 22 01:14:18 2019 -0700
check to see if moduleInstance is still parented before removing. Should
fix #523
---
.../Basic/src/main/royale/org/apache/royale/utils/UIModuleUtils.as | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 f78c31a..df24694 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
@@ -172,7 +172,7 @@ package org.apache.royale.utils
{
this.host = host;
- if (moduleInstance)
+ if (moduleInstance && moduleInstance.parent == host)
host.removeElement(moduleInstance);
createLoader();