You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by yi...@apache.org on 2016/08/07 09:43:43 UTC

git commit: [flex-asjs] [refs/heads/refactor-sprite] - Make numElements target agree with getElementAt() target

Repository: flex-asjs
Updated Branches:
  refs/heads/refactor-sprite 5be02c63b -> 9e127bbf5


Make numElements target agree with getElementAt() target


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/9e127bbf
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/9e127bbf
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/9e127bbf

Branch: refs/heads/refactor-sprite
Commit: 9e127bbf5ab90ced088cc487d5948e61f8e3bec0
Parents: 5be02c6
Author: yishayw <yi...@hotmail.com>
Authored: Sun Aug 7 12:43:38 2016 +0300
Committer: yishayw <yi...@hotmail.com>
Committed: Sun Aug 7 12:43:38 2016 +0300

----------------------------------------------------------------------
 .../src/main/flex/org/apache/flex/core/ContainerBase.as   | 10 ++++++++++
 1 file changed, 10 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9e127bbf/frameworks/projects/Core/src/main/flex/org/apache/flex/core/ContainerBase.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/src/main/flex/org/apache/flex/core/ContainerBase.as b/frameworks/projects/Core/src/main/flex/org/apache/flex/core/ContainerBase.as
index 0dd0b53..f687856 100644
--- a/frameworks/projects/Core/src/main/flex/org/apache/flex/core/ContainerBase.as
+++ b/frameworks/projects/Core/src/main/flex/org/apache/flex/core/ContainerBase.as
@@ -215,6 +215,16 @@ package org.apache.flex.core
 		}
 		
 		/**
+		 *  @private
+		 */
+		override public function numElements():int
+		{
+			var contentView:IParent = view as IParent;
+			return contentView != null ? contentView.numElements : super.numElements;
+		}
+
+		
+		/**
 		 * @private
          * @suppress {undefinedNames}
 		 * Support strandChildren.