You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ah...@apache.org on 2018/07/21 06:28:10 UTC

[royale-asjs] 02/17: make numelements a getter for consistency

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

aharui pushed a commit to branch feature/MXRoyale
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git

commit b08fc9cfef267496756032630493880566da93f2
Author: Alex Harui <ah...@apache.org>
AuthorDate: Tue Jul 17 16:34:34 2018 -0700

    make numelements a getter for consistency
---
 .../Basic/src/main/royale/org/apache/royale/core/ContainerBase.as       | 2 +-
 .../main/royale/org/apache/royale/core/ContainerBaseStrandChildren.as   | 2 +-
 .../src/main/royale/org/apache/royale/core/ListBaseStrandChildren.as    | 2 +-
 .../royale/org/apache/royale/core/IContainerBaseStrandChildrenHost.as   | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/frameworks/projects/Basic/src/main/royale/org/apache/royale/core/ContainerBase.as b/frameworks/projects/Basic/src/main/royale/org/apache/royale/core/ContainerBase.as
index 0b62964..73aab0c 100644
--- a/frameworks/projects/Basic/src/main/royale/org/apache/royale/core/ContainerBase.as
+++ b/frameworks/projects/Basic/src/main/royale/org/apache/royale/core/ContainerBase.as
@@ -186,7 +186,7 @@ package org.apache.royale.core
          * @suppress {undefinedNames}
 		 * Support strandChildren.
 		 */
-		public function $numElements():int
+		public function get $numElements():int
 		{
 			return super.numElements;
 		}
diff --git a/frameworks/projects/Basic/src/main/royale/org/apache/royale/core/ContainerBaseStrandChildren.as b/frameworks/projects/Basic/src/main/royale/org/apache/royale/core/ContainerBaseStrandChildren.as
index 26db4b4..a3b4601 100644
--- a/frameworks/projects/Basic/src/main/royale/org/apache/royale/core/ContainerBaseStrandChildren.as
+++ b/frameworks/projects/Basic/src/main/royale/org/apache/royale/core/ContainerBaseStrandChildren.as
@@ -56,7 +56,7 @@ package org.apache.royale.core
 		 */
 		public function get numElements():int
 		{
-			return owner.$numElements();
+			return owner.$numElements;
 		}
 		
 		/**
diff --git a/frameworks/projects/Basic/src/main/royale/org/apache/royale/core/ListBaseStrandChildren.as b/frameworks/projects/Basic/src/main/royale/org/apache/royale/core/ListBaseStrandChildren.as
index 1358372..e91b237 100644
--- a/frameworks/projects/Basic/src/main/royale/org/apache/royale/core/ListBaseStrandChildren.as
+++ b/frameworks/projects/Basic/src/main/royale/org/apache/royale/core/ListBaseStrandChildren.as
@@ -52,7 +52,7 @@ package org.apache.royale.core
 		 */
 		public function get numElements():int
 		{
-			return owner.$numElements();
+			return owner.$numElements;
 		}
 		
 		/**
diff --git a/frameworks/projects/Core/src/main/royale/org/apache/royale/core/IContainerBaseStrandChildrenHost.as b/frameworks/projects/Core/src/main/royale/org/apache/royale/core/IContainerBaseStrandChildrenHost.as
index 9fc29bf..46c9c04 100644
--- a/frameworks/projects/Core/src/main/royale/org/apache/royale/core/IContainerBaseStrandChildrenHost.as
+++ b/frameworks/projects/Core/src/main/royale/org/apache/royale/core/IContainerBaseStrandChildrenHost.as
@@ -32,7 +32,7 @@ package org.apache.royale.core
      */
 	public interface IContainerBaseStrandChildrenHost
 	{
-		function $numElements():int;
+		function get $numElements():int;
 		function $addElement(c:IChild, dispatchEvent:Boolean = true):void;
 		function $addElementAt(c:IChild, index:int, dispatchEvent:Boolean = true):void;
 		function $removeElement(c:IChild, dispatchEvent:Boolean = true):void;