flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ha...@apache.org
Subject flex-asjs git commit: Support “for each” on XML instance
Date Mon, 17 Jul 2017 18:59:10 GMT
Repository: flex-asjs
Updated Branches:
  refs/heads/develop ef320f796 -> da425327d


Support “for each” on XML instance


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

Branch: refs/heads/develop
Commit: da425327df27c6a9e44d1fa3e3a30566a79cbc6f
Parents: ef320f7
Author: Harbs <harbs@in-tools.com>
Authored: Mon Jul 17 21:59:05 2017 +0300
Committer: Harbs <harbs@in-tools.com>
Committed: Mon Jul 17 21:59:05 2017 +0300

----------------------------------------------------------------------
 frameworks/projects/XML/src/main/flex/XML.as | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/da425327/frameworks/projects/XML/src/main/flex/XML.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/XML/src/main/flex/XML.as b/frameworks/projects/XML/src/main/flex/XML.as
index fd54fca..7152402 100644
--- a/frameworks/projects/XML/src/main/flex/XML.as
+++ b/frameworks/projects/XML/src/main/flex/XML.as
@@ -838,7 +838,14 @@ package
 			list.targetProperty = name;
 			return list;
 		}
-
+		/**
+		 * for each should work on XML too
+		 * @private
+		 */
+		public function elementNames():Array
+		{
+			return [0];
+		}
 		public function equals(xml:*):Boolean
 		{
 			/*


Mime
View raw message