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 62c9c5f  fix getElementIndex, use positioner instead of element
     new 4dda9b5  Merge pull request #411 from yestaro/develop
62c9c5f is described below

commit 62c9c5f53d43f31f1ea86001b9a5b84c0ebe67fc
Author: yestaro <[email protected]>
AuthorDate: Fri Apr 5 10:38:04 2019 +0800

    fix getElementIndex, use positioner instead of element
---
 .../projects/Basic/src/main/royale/org/apache/royale/core/UIBase.as     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/frameworks/projects/Basic/src/main/royale/org/apache/royale/core/UIBase.as 
b/frameworks/projects/Basic/src/main/royale/org/apache/royale/core/UIBase.as
index 9713059..613c940 100644
--- a/frameworks/projects/Basic/src/main/royale/org/apache/royale/core/UIBase.as
+++ b/frameworks/projects/Basic/src/main/royale/org/apache/royale/core/UIBase.as
@@ -1350,7 +1350,7 @@ package org.apache.royale.core
                 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;                

Reply via email to