flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From erikdebr...@apache.org
Subject [05/17] git commit: [flex-falcon] [refs/heads/develop] - Remove 'MXMLDescriptor array' output for VF2JS; will be replaced by 'native' JS solution, probably as pre-compilation step
Date Fri, 21 Nov 2014 12:10:25 GMT
Remove 'MXMLDescriptor array' output for VF2JS; will be replaced by 'native' JS solution, probably
as pre-compilation step

Signed-off-by: Erik de Bruin <erik@ixsoftware.nl>


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

Branch: refs/heads/develop
Commit: e7078ceb7bf65e9493df709a19830d6afd4d0a8c
Parents: 7e3efcf
Author: Erik de Bruin <erik@ixsoftware.nl>
Authored: Fri Nov 21 11:43:46 2014 +0100
Committer: Erik de Bruin <erik@ixsoftware.nl>
Committed: Fri Nov 21 11:43:46 2014 +0100

----------------------------------------------------------------------
 .../codegen/mxml/vf2js/MXMLVF2JSEmitter.java    | 40 +-------------------
 1 file changed, 2 insertions(+), 38 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/e7078ceb/compiler.jx/src/org/apache/flex/compiler/internal/codegen/mxml/vf2js/MXMLVF2JSEmitter.java
----------------------------------------------------------------------
diff --git a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/mxml/vf2js/MXMLVF2JSEmitter.java
b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/mxml/vf2js/MXMLVF2JSEmitter.java
index 4d1205d..04fb87d 100644
--- a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/mxml/vf2js/MXMLVF2JSEmitter.java
+++ b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/mxml/vf2js/MXMLVF2JSEmitter.java
@@ -740,43 +740,7 @@ public class MXMLVF2JSEmitter extends MXMLEmitter implements
             MXMLVF2JSDescriptorSpecifier root = descriptorTree.get(0);
             root.isTopNode = false;
     
-            writeNewline("/**");
-            writeNewline(" * @override");
-            writeNewline(" * @return {Array} the Array of UI element descriptors.");
-            writeNewline(" */");
-            writeNewline(cname + ".prototype.get_MXMLDescriptor = function()");
-            indentPush();
-            writeNewline("{");
-            writeNewline("if (this.mxmldd == undefined)");
-            indentPush();
-            writeNewline("{");
-            writeNewline("/** @type {Array} */");
-            writeNewline("var arr = " + cname + ".base(this, 'get_MXMLDescriptor');");
-            writeNewline("/** @type {Array} */");
-            indentPop();
-            indentPop();
-            writeNewline("var data = [");
-    
-            writeNewline(root.output(true));
-    
-            indentPush();
-            writeNewline("];");
-            indentPush();
-            writeNewline("");
-            indentPush();
-            writeNewline("if (arr)");
-            indentPop();
-            writeNewline("this.mxmldd = arr.concat(data);");
-            indentPush();
-            writeNewline("else");
-            indentPop();
-            indentPop();
-            writeNewline("this.mxmldd = data;");
-            writeNewline("}");
-            indentPop();
-            writeNewline("return this.mxmldd;");
-            writeNewline("};");
-            writeNewline();
+            //writeNewline(root.output(true));
         }
         
         if (propertiesTree.propertySpecifiers.size() > 0 ||
@@ -791,7 +755,7 @@ public class MXMLVF2JSEmitter extends MXMLEmitter implements
             writeNewline(" * @expose");
             writeNewline(" */");
             writeNewline(cname + ".prototype.start = function () {");
-            writeNewline(root.output(true));
+            //writeNewline(root.output(true));
             writeNewline("};");
         }
     }


Mime
View raw message