flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [4/5] git commit: [flex-utilities] [refs/heads/develop] - need to re-create children when targets are re-used
Date Fri, 06 Jun 2014 16:58:02 GMT
need to re-create children when targets are re-used


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

Branch: refs/heads/develop
Commit: f0d6c9573fc3d3f834259a363a797d937549cadf
Parents: 6bc8a16
Author: Alex Harui <aharui@apache.org>
Authored: Thu Jun 5 16:10:42 2014 -0700
Committer: Alex Harui <aharui@apache.org>
Committed: Thu Jun 5 16:10:42 2014 -0700

----------------------------------------------------------------------
 .../org/apache/flex/ant/tags/supportClasses/ParentTagHandler.as | 5 +++++
 ant_on_air/src/org/apache/flex/xml/IParentTagHandler.as         | 5 +++++
 ant_on_air/src/org/apache/flex/xml/XMLTagProcessor.as           | 2 ++
 3 files changed, 12 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/f0d6c957/ant_on_air/src/org/apache/flex/ant/tags/supportClasses/ParentTagHandler.as
----------------------------------------------------------------------
diff --git a/ant_on_air/src/org/apache/flex/ant/tags/supportClasses/ParentTagHandler.as b/ant_on_air/src/org/apache/flex/ant/tags/supportClasses/ParentTagHandler.as
index 81e6cc3..ec462cc 100644
--- a/ant_on_air/src/org/apache/flex/ant/tags/supportClasses/ParentTagHandler.as
+++ b/ant_on_air/src/org/apache/flex/ant/tags/supportClasses/ParentTagHandler.as
@@ -42,6 +42,11 @@ package org.apache.flex.ant.tags.supportClasses
             return children[index];
         }
         
+        public function removeChildren():void
+        {
+            children = null;
+        }
+        
         public function get numChildren():int
         {
             if (!children) return 0;

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/f0d6c957/ant_on_air/src/org/apache/flex/xml/IParentTagHandler.as
----------------------------------------------------------------------
diff --git a/ant_on_air/src/org/apache/flex/xml/IParentTagHandler.as b/ant_on_air/src/org/apache/flex/xml/IParentTagHandler.as
index cd8209f..6a0e09a 100644
--- a/ant_on_air/src/org/apache/flex/xml/IParentTagHandler.as
+++ b/ant_on_air/src/org/apache/flex/xml/IParentTagHandler.as
@@ -38,6 +38,11 @@ package org.apache.flex.xml
         function getChildAt(index:int):ITagHandler;
         
         /**
+         *  Remove all children
+         */        
+        function removeChildren():void;
+        
+        /**
          *  The number of children.
          *  @return int The number of children. 
          */

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/f0d6c957/ant_on_air/src/org/apache/flex/xml/XMLTagProcessor.as
----------------------------------------------------------------------
diff --git a/ant_on_air/src/org/apache/flex/xml/XMLTagProcessor.as b/ant_on_air/src/org/apache/flex/xml/XMLTagProcessor.as
index 99f19c0..89150d5 100644
--- a/ant_on_air/src/org/apache/flex/xml/XMLTagProcessor.as
+++ b/ant_on_air/src/org/apache/flex/xml/XMLTagProcessor.as
@@ -63,6 +63,8 @@ package org.apache.flex.xml
          */
         public function processChildren(xml:XML, parentTag:IParentTagHandler):void
         {
+            parentTag.removeChildren();
+            
             var xmlList:XMLList = xml.children();
             var n:int = xmlList.length();
             for (var i:int = 0; i < n; i++)


Mime
View raw message