You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ca...@apache.org on 2020/01/17 12:20:18 UTC

[royale-asjs] branch develop updated: jewel-application: element was left in some places when changed to positioner

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

carlosrovira 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 8f1bb40  jewel-application: element was left in some places when changed to positioner
8f1bb40 is described below

commit 8f1bb4081c467828980835b795e1118b1e5afff8
Author: Carlos Rovira <ca...@apache.org>
AuthorDate: Fri Jan 17 13:20:06 2020 +0100

    jewel-application: element was left in some places when changed to positioner
---
 .../Jewel/src/main/royale/org/apache/royale/jewel/Application.as      | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/Application.as b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/Application.as
index 75db620..bbee530 100644
--- a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/Application.as
+++ b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/Application.as
@@ -599,7 +599,7 @@ package org.apache.royale.jewel
                 var n:int = children.length;
                 for (var i:int = 0; i < n; i++)
                 {
-                    if (children[i] == c.element)
+                    if (children[i] == c.positioner)
                         return i;
                 }
                 return -1;
@@ -626,7 +626,7 @@ package org.apache.royale.jewel
                     removeChild(c as DisplayObject);
             }
             COMPILE::JS {
-                element.removeChild(c.element as HTMLElement);
+                element.removeChild(c.positioner as HTMLElement);
             }
         }