flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ha...@apache.org
Subject git commit: [flex-asjs] [refs/heads/develop] - over-zealous use of isSingle()
Date Tue, 18 Jul 2017 11:27:26 GMT
Repository: flex-asjs
Updated Branches:
  refs/heads/develop 769048c38 -> 887d7c447


over-zealous use of isSingle()


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

Branch: refs/heads/develop
Commit: 887d7c447b1b78d98a850bfeda2bdf5344ed3a6b
Parents: 769048c
Author: Harbs <harbs@in-tools.com>
Authored: Tue Jul 18 14:27:21 2017 +0300
Committer: Harbs <harbs@in-tools.com>
Committed: Tue Jul 18 14:27:21 2017 +0300

----------------------------------------------------------------------
 frameworks/projects/XML/src/main/flex/XMLList.as | 8 --------
 1 file changed, 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/887d7c44/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 4be088c..d90ee3d 100644
--- a/frameworks/projects/XML/src/main/flex/XMLList.as
+++ b/frameworks/projects/XML/src/main/flex/XMLList.as
@@ -714,8 +714,6 @@ package
 
 		public function removeChildAt(idx:int):void
 		{
-			if (isSingle())
-				_xmlArray[0].removeChildAt(idx);
 			if(idx >= 0 && idx < _xmlArray.length)
 			{
 				var child:XML = _xmlArray[idx];
@@ -726,12 +724,6 @@ package
 		}
 		private function replaceChildAt(idx:int,child:*):void
 		{
-			if (isSingle())
-			{
-				_xmlArray[0].replaceChildAt(idx,child);
-				return;
-			}
-
 			var i:int;
 			var childToReplace:XML = _xmlArray[idx];
 			if(childToReplace && _targetObject)


Mime
View raw message