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

git commit: [flex-asjs] [refs/heads/tlf] - Fixed deleting XMLList items by index

Repository: flex-asjs
Updated Branches:
  refs/heads/tlf f589a57f3 -> 891a2cfdb


Fixed deleting XMLList items by index


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

Branch: refs/heads/tlf
Commit: 891a2cfdb531bdc470d4574624ee4a59922d6093
Parents: f589a57
Author: Harbs <ha...@in-tools.com>
Authored: Mon May 8 10:08:16 2017 +0300
Committer: Harbs <ha...@in-tools.com>
Committed: Mon May 8 10:08:16 2017 +0300

----------------------------------------------------------------------
 frameworks/projects/XML/src/main/flex/XML.as     | 2 +-
 frameworks/projects/XML/src/main/flex/XMLList.as | 6 ++++++
 2 files changed, 7 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/891a2cfd/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 1088520..912e1f0 100644
--- a/frameworks/projects/XML/src/main/flex/XML.as
+++ b/frameworks/projects/XML/src/main/flex/XML.as
@@ -307,7 +307,7 @@ package
 
 		public function XML(xml:String = null)
 		{
-			_origStr = xml;
+			// _origStr = xml;
 			_children = [];
 			if(xml)
 			{

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/891a2cfd/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 d8887c1..d07a00a 100644
--- a/frameworks/projects/XML/src/main/flex/XMLList.as
+++ b/frameworks/projects/XML/src/main/flex/XMLList.as
@@ -632,6 +632,12 @@ package
 				}
 				return;
 			}
+			if(child is Number)
+			{
+				i = child;
+				removeChildAt(i);
+				return;
+			}
 
 			if(child is XMLList)
 			{