flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pio...@apache.org
Subject [1/2] git commit: [flex-asjs] [refs/heads/develop] - - Fix not working numElements - Fix failing internalChildren function when element is undefined
Date Thu, 09 Feb 2017 11:34:22 GMT
Repository: flex-asjs
Updated Branches:
  refs/heads/develop d40b9ddff -> 9855fa49d


- Fix not working numElements
- Fix failing internalChildren function when element is undefined


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

Branch: refs/heads/develop
Commit: 5ea3f1b3230ae20fde48202eca23e641dd137861
Parents: d40b9dd
Author: piotrz <piotrz@apache.org>
Authored: Thu Feb 9 12:32:45 2017 +0100
Committer: piotrz <piotrz@apache.org>
Committed: Thu Feb 9 12:32:45 2017 +0100

----------------------------------------------------------------------
 .../HTML/src/main/flex/org/apache/flex/core/ContainerBase.as       | 2 +-
 .../projects/HTML/src/main/flex/org/apache/flex/core/UIBase.as     | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5ea3f1b3/frameworks/projects/HTML/src/main/flex/org/apache/flex/core/ContainerBase.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/src/main/flex/org/apache/flex/core/ContainerBase.as
b/frameworks/projects/HTML/src/main/flex/org/apache/flex/core/ContainerBase.as
index 047b635..e150ac1 100644
--- a/frameworks/projects/HTML/src/main/flex/org/apache/flex/core/ContainerBase.as
+++ b/frameworks/projects/HTML/src/main/flex/org/apache/flex/core/ContainerBase.as
@@ -231,7 +231,7 @@ package org.apache.flex.core
 		 */
 		public function $numElements():int
 		{
-			return super.numElements();
+			return super.numElements;
 		}
 		
 		/**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5ea3f1b3/frameworks/projects/HTML/src/main/flex/org/apache/flex/core/UIBase.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/src/main/flex/org/apache/flex/core/UIBase.as b/frameworks/projects/HTML/src/main/flex/org/apache/flex/core/UIBase.as
index b075e72..d9804b2 100644
--- a/frameworks/projects/HTML/src/main/flex/org/apache/flex/core/UIBase.as
+++ b/frameworks/projects/HTML/src/main/flex/org/apache/flex/core/UIBase.as
@@ -799,6 +799,8 @@ package org.apache.flex.core
         COMPILE::JS
         public function internalChildren():Array
         {
+            if (!element) return [];
+            
             return element.childNodes as Array;
         }
         		


Mime
View raw message