src/JsRender/NodeToVala.vala
authorAlan <alan@roojs.com>
Wed, 6 Jul 2022 08:28:46 +0000 (16:28 +0800)
committerAlan <alan@roojs.com>
Wed, 6 Jul 2022 08:28:46 +0000 (16:28 +0800)
src/JsRender/NodeToVala.vala

index a6a913d..64ac7ee 100644 (file)
@@ -602,11 +602,11 @@ public class JsRender.NodeToVala : Object {
                        
                }
                // default ctor with no params..
-                if (default_ctor != null ) {
+                if (default_ctor != null && ctor != ".new" ) {
                        this.node.setLine(this.cur_line, "p", "* xtype");
                        
                        this.addLine(this.ipad + "this.el = new " + this.node.fqn() + ctor + "(  );") ;
-                
+                       return;
                 }