flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [2/7] git commit: [flex-falcon] [refs/heads/develop] - also use _id for binding slots
Date Tue, 23 Dec 2014 07:40:48 GMT
also use _id for binding slots


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

Branch: refs/heads/develop
Commit: 64ca5f6db06e6099df9d2b1a5fc7c52694e06fb0
Parents: c941cab
Author: Alex Harui <aharui@apache.org>
Authored: Sun Dec 21 07:28:03 2014 -0800
Committer: Alex Harui <aharui@apache.org>
Committed: Sun Dec 21 07:28:03 2014 -0800

----------------------------------------------------------------------
 .../internal/codegen/mxml/flexjs/MXMLDescriptorSpecifier.java   | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/64ca5f6d/compiler.jx/src/org/apache/flex/compiler/internal/codegen/mxml/flexjs/MXMLDescriptorSpecifier.java
----------------------------------------------------------------------
diff --git a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/mxml/flexjs/MXMLDescriptorSpecifier.java
b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/mxml/flexjs/MXMLDescriptorSpecifier.java
index cb98542..9eac5d5 100644
--- a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/mxml/flexjs/MXMLDescriptorSpecifier.java
+++ b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/mxml/flexjs/MXMLDescriptorSpecifier.java
@@ -181,8 +181,9 @@ public class MXMLDescriptorSpecifier extends MXMLNodeSpecifier
             {
                 write(propertySpecifiers.size() + 1 + "");
                 writeDelimiter(writeNewline);
-                String idPropName = (id
-                        .startsWith(MXMLFlexJSEmitterTokens.ID_PREFIX.getToken())) ? "_id"
+                boolean isEffectiveID = id.startsWith(MXMLFlexJSEmitterTokens.ID_PREFIX.getToken())
||
+                						id.startsWith(MXMLFlexJSEmitterTokens.BINDING_PREFIX.getToken());
+                String idPropName = (isEffectiveID) ? "_id"
                         : "id";
                 writeSimpleDescriptor(idPropName, ASEmitterTokens.TRUE.getToken(),
                         ASEmitterTokens.SINGLE_QUOTE.getToken()


Mime
View raw message