Repository: flex-falcon
Updated Branches:
  refs/heads/develop 6f47ace4d -> 236866cef


don't generate multiple ids for the same instance


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

Branch: refs/heads/develop
Commit: 236866cefd056be21e28b7d2592a9cf663256266
Parents: 6f47ace
Author: Alex Harui <[email protected]>
Authored: Thu Jan 14 09:15:25 2016 -0800
Committer: Alex Harui <[email protected]>
Committed: Thu Jan 14 09:15:47 2016 -0800

----------------------------------------------------------------------
 .../flex/compiler/internal/tree/mxml/MXMLClassDefinitionNode.java  | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/236866ce/compiler/src/org/apache/flex/compiler/internal/tree/mxml/MXMLClassDefinitionNode.java
----------------------------------------------------------------------
diff --git 
a/compiler/src/org/apache/flex/compiler/internal/tree/mxml/MXMLClassDefinitionNode.java
 
b/compiler/src/org/apache/flex/compiler/internal/tree/mxml/MXMLClassDefinitionNode.java
index a431d3c..7c3c9a6 100644
--- 
a/compiler/src/org/apache/flex/compiler/internal/tree/mxml/MXMLClassDefinitionNode.java
+++ 
b/compiler/src/org/apache/flex/compiler/internal/tree/mxml/MXMLClassDefinitionNode.java
@@ -760,6 +760,8 @@ public class MXMLClassDefinitionNode extends 
MXMLClassReferenceNodeBase
     {
         if (instanceNode != null && instanceNode.getID() == null)
         {
+            if (generatedIDMap.containsKey(instanceNode))
+                return;
             String id = GENERATED_ID_BASE + generatedIDCounter++;
             generatedIDMap.put(instanceNode, id);
         }

Reply via email to