flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [09/14] git commit: [flex-utilities] [refs/heads/develop] - if no children were created, return 0
Date Mon, 09 Dec 2013 23:30:11 GMT
if no children were created, return 0


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

Branch: refs/heads/develop
Commit: 1f7c230ba1db90edb58736e1e5c61ef3efe3d6f4
Parents: eef49ca
Author: Alex Harui <aharui@apache.org>
Authored: Mon Dec 9 13:58:59 2013 -0800
Committer: Alex Harui <aharui@apache.org>
Committed: Mon Dec 9 13:58:59 2013 -0800

----------------------------------------------------------------------
 .../org/apache/flex/ant/tags/supportClasses/ParentTagHandler.as    | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/1f7c230b/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 f6c2941..81e6cc3 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
@@ -44,6 +44,8 @@ package org.apache.flex.ant.tags.supportClasses
         
         public function get numChildren():int
         {
+            if (!children) return 0;
+            
             return children.length;
         }
     }


Mime
View raw message