flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cd...@apache.org
Subject [34/50] git commit: [flex-asjs] [refs/heads/feature/maven-migration] - added elementNames() to XMLList
Date Mon, 18 Apr 2016 13:26:57 GMT
added elementNames() to XMLList


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

Branch: refs/heads/feature/maven-migration
Commit: fdbc359ec0cb311bb5241834984e68489eadbdaa
Parents: fd1ae8e
Author: Harbs <harbs@in-tools.com>
Authored: Mon Apr 11 20:18:56 2016 +0300
Committer: Harbs <harbs@in-tools.com>
Committed: Mon Apr 11 20:18:56 2016 +0300

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


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/fdbc359e/frameworks/projects/XML/src/main/flex/XMLList.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/XML/src/main/flex/XMLList.as b/frameworks/projects/XML/src/main/flex/XMLList.as
index ea7b4ec..1173512 100644
--- a/frameworks/projects/XML/src/main/flex/XMLList.as
+++ b/frameworks/projects/XML/src/main/flex/XMLList.as
@@ -255,7 +255,8 @@ package
 			while(i<len)
 				appendChild(list[i++]);
 
-//			for each(item in list)
+//			var xmlList:XMLList = list;
+//			for each(item in xmlList)
 //				appendChild(item);
 				
 			return this;
@@ -341,6 +342,17 @@ package
 		}
 
 		COMPILE::JS
+		public function elementNames():Array
+		{
+			var retVal:Array = [];
+			var i:int=0;
+			var len:int = _xmlArray.length;
+			while(i<len)
+				retVal.push(i++);
+			return retVal;
+		}
+
+		COMPILE::JS
 		public function equals(list:*):Boolean
 		{
 			/*


Mime
View raw message