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 2013/07/16 09:55:40 UTC

git commit: [flex-falcon] [refs/heads/develop] - Fix binding output for mxml-as-data

Updated Branches:
  refs/heads/develop 42457f30f -> 974cbfee6


Fix binding output for mxml-as-data


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

Branch: refs/heads/develop
Commit: 974cbfee6570c58fff2c19c912dfb472526cb2f6
Parents: 42457f3
Author: Alex Harui <ah...@apache.org>
Authored: Mon Jul 15 17:38:24 2013 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Mon Jul 15 17:38:24 2013 -0700

----------------------------------------------------------------------
 .../codegen/databinding/MXMLBindingDirectiveHelper.java        | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/974cbfee/compiler/src/org/apache/flex/compiler/internal/codegen/databinding/MXMLBindingDirectiveHelper.java
----------------------------------------------------------------------
diff --git a/compiler/src/org/apache/flex/compiler/internal/codegen/databinding/MXMLBindingDirectiveHelper.java b/compiler/src/org/apache/flex/compiler/internal/codegen/databinding/MXMLBindingDirectiveHelper.java
index ee173cd..ccb1d2e 100644
--- a/compiler/src/org/apache/flex/compiler/internal/codegen/databinding/MXMLBindingDirectiveHelper.java
+++ b/compiler/src/org/apache/flex/compiler/internal/codegen/databinding/MXMLBindingDirectiveHelper.java
@@ -139,8 +139,9 @@ public class MXMLBindingDirectiveHelper
         if (bindingDataBase.getBindingInfo().isEmpty())
             return null;
         
-        if (!establishSDKDependencies())
-            return null;
+        if (!host.getProject().getTargetSettings().getMxmlChildrenAsData())
+            if (!establishSDKDependencies())
+                return null;
        
         bindingDataBase.finishAnalysis();
         
@@ -168,6 +169,7 @@ public class MXMLBindingDirectiveHelper
     
     private InstructionList outputBindingInfoAsData()
     {
+        System.out.println("outputBindingInfoAsData");
         host.addVariableTrait(IMXMLTypeConstants.NAME_BINDINGS, NAME_ARRAYTYPE);
 
         InstructionList ret = new InstructionList();