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/refactor-sprite] - Added XMLList method
Date Tue, 13 Sep 2016 07:16:06 GMT
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 <harbs@in-tools.com>
Authored: Tue Sep 13 10:15:59 2016 +0300
Committer: Harbs <harbs@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())


Mime
View raw message