You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2016/08/02 19:03:10 UTC

[03/10] git commit: [flex-asjs] [refs/heads/refactor-sprite] - need different test as to whether to create children

need different test as to whether to create children


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

Branch: refs/heads/refactor-sprite
Commit: 4ad37724f2d51199b61fa7acfc3630cb7d990508
Parents: 5184111
Author: Alex Harui <ah...@apache.org>
Authored: Fri Jul 29 14:26:54 2016 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Tue Aug 2 10:20:29 2016 -0700

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


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/4ad37724/frameworks/projects/Core/src/main/flex/org/apache/flex/utils/MXMLDataInterpreter.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/src/main/flex/org/apache/flex/utils/MXMLDataInterpreter.as b/frameworks/projects/Core/src/main/flex/org/apache/flex/utils/MXMLDataInterpreter.as
index f280a04..9af7640 100644
--- a/frameworks/projects/Core/src/main/flex/org/apache/flex/utils/MXMLDataInterpreter.as
+++ b/frameworks/projects/Core/src/main/flex/org/apache/flex/utils/MXMLDataInterpreter.as
@@ -32,11 +32,11 @@ import org.apache.flex.core.IParent;
 import org.apache.flex.core.IStrand;
 import org.apache.flex.events.Event;
 import org.apache.flex.events.IEventDispatcher;
+import org.apache.flex.core.IChild;        
 
 COMPILE::JS
 {
     import goog.bind;
-    import org.apache.flex.core.IUIBase;        
 }
 
 /**
@@ -295,12 +295,12 @@ public class MXMLDataInterpreter
         }
         COMPILE::SWF
         {
-            if (parent && comp is DisplayObject)
+            if (parent && comp is IChild)
                 parent.addElement(comp, !(parent is IContainer));
         }
         COMPILE::JS
         {
-            if (parent && comp is IUIBase)
+            if (parent && comp is IChild)
                 parent.addElement(comp, !(parent is IContainer));
         }