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] - don't add children each time you are executed and reset any variables you need to reuse
Date Wed, 15 Jan 2014 23:21:06 GMT
don't add children each time you are executed and reset any variables you need to reuse


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

Branch: refs/heads/develop
Commit: 53ad7d3f058c43ea58a0738ee0e94e1e80a486ad
Parents: 5cd4944
Author: Alex Harui <aharui@apache.org>
Authored: Wed Jan 15 15:19:39 2014 -0800
Committer: Alex Harui <aharui@apache.org>
Committed: Wed Jan 15 15:19:39 2014 -0800

----------------------------------------------------------------------
 ant_on_air/src/org/apache/flex/ant/tags/Target.as            | 1 +
 .../org/apache/flex/ant/tags/supportClasses/TaskHandler.as   | 8 +++++++-
 2 files changed, 8 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/53ad7d3f/ant_on_air/src/org/apache/flex/ant/tags/Target.as
----------------------------------------------------------------------
diff --git a/ant_on_air/src/org/apache/flex/ant/tags/Target.as b/ant_on_air/src/org/apache/flex/ant/tags/Target.as
index e730cbe..7bca9f5 100644
--- a/ant_on_air/src/org/apache/flex/ant/tags/Target.as
+++ b/ant_on_air/src/org/apache/flex/ant/tags/Target.as
@@ -94,6 +94,7 @@ package org.apache.flex.ant.tags
         {
             super.execute(callbackMode, context);
             
+            current = 0;
             inExecute = true;
             this.callbackMode = callbackMode;
             if (depends)

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/53ad7d3f/ant_on_air/src/org/apache/flex/ant/tags/supportClasses/TaskHandler.as
----------------------------------------------------------------------
diff --git a/ant_on_air/src/org/apache/flex/ant/tags/supportClasses/TaskHandler.as b/ant_on_air/src/org/apache/flex/ant/tags/supportClasses/TaskHandler.as
index 59422d2..0d05909 100644
--- a/ant_on_air/src/org/apache/flex/ant/tags/supportClasses/TaskHandler.as
+++ b/ant_on_air/src/org/apache/flex/ant/tags/supportClasses/TaskHandler.as
@@ -36,6 +36,8 @@ package org.apache.flex.ant.tags.supportClasses
         
         protected var callbackMode:Boolean;
         
+        protected var processedChildren:Boolean;
+        
         /**
          *  Do the work.
          *  TaskHandlers lazily create their children so
@@ -46,7 +48,11 @@ package org.apache.flex.ant.tags.supportClasses
         {
             this.callbackMode = callbackMode;
 			this.context = context;
-            ant.processChildren(xml, this);
+            if (!processedChildren)
+            {
+                ant.processChildren(xml, this);
+                processedChildren = true;
+            }
             return true;
         }
         


Mime
View raw message