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 2016/09/13 07:16:06 UTC

git commit: [flex-asjs] [refs/heads/refactor-sprite] - Added XMLList method

Repository: flex-asjs
Updated Branches:
  refs/heads/refactor-sprite 9eaf1d4b3 -> d7b86841d


Added XMLList method


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

Branch: refs/heads/refactor-sprite
Commit: d7b86841db7122841cea2658b7e45155b4793357
Parents: 9eaf1d4
Author: Harbs <ha...@in-tools.com>
Authored: Tue Sep 13 10:15:59 2016 +0300
Committer: Harbs <ha...@in-tools.com>
Committed: Tue Sep 13 10:15:59 2016 +0300

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


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d7b86841/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 11e727f..7078a55 100644
--- a/frameworks/projects/XML/src/main/flex/XMLList.as
+++ b/frameworks/projects/XML/src/main/flex/XMLList.as
@@ -714,6 +714,13 @@ package
 				_xmlArray[i].setAttribute(attr,value);
 
 		}
+		public function hasAncestor(obj:*):Boolean
+		{
+			if(isSingle())
+				return _xmlArray[0].hasAncestor(obj);
+
+			return false;
+		}
 		public function insertChildAfter(child1:XML, child2:XML):XML
 		{
 			if(isSingle())