src/JsRender/NodeToJs.vala
authorAlan Knowles <alan@roojs.com>
Sat, 3 Feb 2024 10:07:02 +0000 (18:07 +0800)
committerAlan Knowles <alan@roojs.com>
Sat, 3 Feb 2024 10:07:02 +0000 (18:07 +0800)
src/JsRender/NodeToJs.vala

index 834e4b2..413393a 100644 (file)
@@ -38,23 +38,15 @@ public class JsRender.NodeToJs : JsRender.NodeWriter {
        
  
 
-       protected NodeWriter( JsRender file,  Node node,  int depth, NodeWriter? parent
-       public NodeToJs( Node node, Gee.ArrayList<string> doubleStringProps, string pad, NodeToJs? parent) 
+       protected NodetoJs( JsRender file,  Node node,  int depth, NodeWriter? parent, Gee.ArrayList<string> doubleStringProps
+        
        {
-               base(file
-               this.node = node;
+               base(file, node, depth, parent)
                this.doubleStringProps = doubleStringProps;
-               this.pad = pad;
-               this.node.node_pad = pad;
-               
-               //this.els = new Gee.ArrayList<string>(); 
-               //this.ar_props = new Gee.HashMap<string,string>();
-               
-               
-               
-               // this is the bit that causes issues - we have to output as we go, otherwise we 
-               // can not work out which line is which...
                
+               this.initPadding(4 * depth, " "); // fixme?
+                
+                
                this.out_props = new Gee.HashMap<string,string>();
                this.out_listeners = new Gee.HashMap<string,string>();