Repository: flex-asjs
Updated Branches:
  refs/heads/develop d0bccb850 -> 1bbf65223


don't need childrenAdded call for containers that are IMXMLDocuments


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

Branch: refs/heads/develop
Commit: 69185ec3b2bb2a929991df88784aafa6aa7faa73
Parents: b185c1b
Author: Alex Harui <[email protected]>
Authored: Fri Oct 24 11:48:50 2014 -0700
Committer: Alex Harui <[email protected]>
Committed: Fri Oct 24 13:02:18 2014 -0700

----------------------------------------------------------------------
 .../src/org/apache/flex/utils/MXMLDataInterpreter.as        | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/69185ec3/frameworks/as/projects/FlexJSUI/src/org/apache/flex/utils/MXMLDataInterpreter.as
----------------------------------------------------------------------
diff --git 
a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/utils/MXMLDataInterpreter.as
 
b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/utils/MXMLDataInterpreter.as
index 5f26097..f9af9e3 100644
--- 
a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/utils/MXMLDataInterpreter.as
+++ 
b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/utils/MXMLDataInterpreter.as
@@ -266,11 +266,14 @@ public class MXMLDataInterpreter
         if (children)
         {
             if (!(comp is IMXMLDocument))
+            {
                 generateMXMLInstances(document, comp as IParent, children);
             
-            if (comp is IContainer)
-            {
-                IContainer(comp).childrenAdded();
+                // maybe we can remove this.  All IContainers should be 
IMXMLDocuments?
+                if (comp is IContainer)
+                {
+                    IContainer(comp).childrenAdded();
+                }
             }
         }
         

Reply via email to