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

harbs 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 b6344fc  Implement removeAllElements() for Spark SkinnableContainer.
     new bab1a45  Merge pull request #998 from 
estanglerbm/skinnablecontainer-removeallchildren
b6344fc is described below

commit b6344fc15e7106cc8975c9be87bfe0864c9a9a92
Author: Edward Stangler <[email protected]>
AuthorDate: Wed Dec 9 22:26:00 2020 -0600

    Implement removeAllElements() for Spark SkinnableContainer.
---
 .../src/main/royale/spark/components/SkinnableContainer.as          | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git 
a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/SkinnableContainer.as
 
b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/SkinnableContainer.as
index fc467ce..c843ef5 100644
--- 
a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/SkinnableContainer.as
+++ 
b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/SkinnableContainer.as
@@ -894,6 +894,12 @@ public class SkinnableContainer extends 
SkinnableContainerBase implements IConta
     {
         /* _contentModified = true;
         currentContentGroup.removeAllElements(); */
+
+        // Copied from mx.core.Container
+        while (numChildren > 0)
+        {
+            removeChildAt(0);
+        }
     } 
     
     /*

Reply via email to