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 9768fac  fix SWF side MXTests
9768fac is described below

commit 9768facf550e91c4095f8986c221d624d6e661a9
Author: Alex Harui <aha...@apache.org>
AuthorDate: Sat Mar 7 23:38:35 2020 -0800

    fix SWF side MXTests
---
 frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

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 7f745e4..017d139 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as
@@ -5237,8 +5237,10 @@ COMPILE::JS
      */
     public function owns(child:IUIBase):Boolean
     {
-        trace("owns not implemented");
-        return true;
+               if (!(child is IUIComponent))
+                       return false;
+                       
+        return contains(child as IUIComponent);
     }
     
     /**

Reply via email to