You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by jo...@apache.org on 2024/10/09 20:45:09 UTC

(royale-asjs) 05/07: Basic: fix $sprite_setChildIndex() signature and call to super.setChildIndex()

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

joshtynjala pushed a commit to branch fix/super-signature-checks
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git

commit 8f2fb817768d7c85b0f0b788ad8ec4558c05fd5e
Author: Josh Tynjala <jo...@apache.org>
AuthorDate: Wed Oct 9 13:22:30 2024 -0700

    Basic: fix $sprite_setChildIndex() signature and call to super.setChildIndex()
    
    It was missing the child:DisplayObject as the first parameter, and only passed index to super.setChildIndex(), which require two arguments.
---
 .../projects/Basic/src/main/royale/org/apache/royale/core/UIBase.as   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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 97254be4b0..522d5d5da4 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
@@ -1603,9 +1603,9 @@ package org.apache.royale.core
             return super.getChildAt(index);
         }
         COMPILE::SWF
-        public function $sprite_setChildIndex(index:int):void
+        public function $sprite_setChildIndex(child:DisplayObject, index:int):void
         {
-            super.setChildIndex(index);
+            super.setChildIndex(child, index);
         }
         COMPILE::SWF
         public function $sprite_getChildIndex(child:DisplayObject):int