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 2014/09/25 19:24:05 UTC

[5/7] git commit: [flex-falcon] [refs/heads/develop] - fix determination of which binding output to emit

fix determination of which binding output to emit


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

Branch: refs/heads/develop
Commit: 47227557122aebd54c85567efc99426be95a202e
Parents: 1b805c9
Author: Alex Harui <ah...@apache.org>
Authored: Tue Sep 16 23:13:59 2014 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Thu Sep 25 10:23:52 2014 -0700

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


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/47227557/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 e053aec..105c7a0 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
@@ -165,8 +165,13 @@ public class MXMLBindingDirectiveHelper
         }
         else
         {
-            makeSpecialMemberVariablesForBinding();
-            isFlexSDK = true;
+            if (host.getProject().isFlex())
+            {
+                makeSpecialMemberVariablesForBinding();
+                isFlexSDK = true;
+            }
+            else
+                host.addVariableTrait(IMXMLTypeConstants.NAME_BINDINGS, NAME_ARRAYTYPE);
         }
         
         if (host.getProject().getTargetSettings().getMxmlChildrenAsData())