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/07/18 22:30:30 UTC

flex-asjs git commit: Normalizing appears to have never worked correctly…

Repository: flex-asjs
Updated Branches:
  refs/heads/develop 872384bfc -> 7aa767fff


Normalizing appears to have never worked correctly…


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

Branch: refs/heads/develop
Commit: 7aa767fff046263ee1711d44c47a3de87b10e65c
Parents: 872384b
Author: Harbs <ha...@in-tools.com>
Authored: Wed Jul 19 01:30:26 2017 +0300
Committer: Harbs <ha...@in-tools.com>
Committed: Wed Jul 19 01:30:26 2017 +0300

----------------------------------------------------------------------
 frameworks/projects/XML/src/main/flex/XML.as | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7aa767ff/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 c8fa3cf..b075f2e 100644
--- a/frameworks/projects/XML/src/main/flex/XML.as
+++ b/frameworks/projects/XML/src/main/flex/XML.as
@@ -770,7 +770,7 @@ package
 			if(idx >= _children.length)
 				return;
 			var child:XML = _children[idx];
-			child.setParent(null);
+			child._parent = null;
 			_children.splice(idx,1);
 		}
 		
@@ -1392,10 +1392,10 @@ package
 				{
 					if(lastChild && lastChild.nodeKind() == "text")
 					{
-						child.setValue(child.text() + lastChild.text());
+						child.setValue(child.s() + lastChild.s());
 						deleteChildAt(i+1);
 					}
-					if(!child.text())
+					if(!child.s())
 						deleteChildAt(i);
 				}
 				lastChild = child;
@@ -1533,7 +1533,7 @@ package
 					if(child.equals(_attributes[i]))
 					{
 						removed = _attributes[i];
-						removed.setParent(null);
+						removed._parent = null;
 						_attributes.splice(i,1);
 						return true;
 					}
@@ -1754,7 +1754,7 @@ package
 			{
 				//6.
 				if(_children[idx])
-					_children[idx].setParent(null);
+					_children[idx]._parent = null;
 
 				var len:int = v.length();
 				v[0].setParent(this);
@@ -1766,9 +1766,7 @@ package
 					chld = v[listIdx];
 					insertChildAt(chld,idx+listIdx);
 					listIdx++;
-
 				}
-
 			}
 			else
 			{