src/JsRender/NodeToJs.vala
authorAlan Knowles <alan@roojs.com>
Fri, 19 Jun 2015 06:04:03 +0000 (14:04 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 19 Jun 2015 06:04:03 +0000 (14:04 +0800)
src/JsRender/NodeToJs.vala

index c10a850..d11e818 100644 (file)
@@ -396,7 +396,12 @@ public class JsRender.NodeToJs : Object {
                        print("sprop is : " + sprop + "\n");
                        
                        // it's an array type..
-                       var old = "";
+                       //var old = "";
+                       if (!this.out_props_array.has_key(sprop)) {
+                               this.out_props_array.set(sprop, new Gee.ArrayList<Node>());
+                       }
+                       
+                       /*
                        if (!this.ar_props.has_key(sprop)) {
                                
                                this.ar_props.set(sprop, "");
@@ -406,8 +411,9 @@ public class JsRender.NodeToJs : Object {
                        }
                        var nstr  = old += old.length > 0 ? ",\n" : "";
                        nstr += this.mungeChild( this.pad + indent_str + indent_str + indent_str ,   pl);
+                       */
                        this.out_props_array.get(sprop).add( pl);
-                       this.ar_props.set(sprop, nstr);
+                       //this.ar_props.set(sprop, nstr);
                         
                        
                }