src/JsRender/NodeToJs.vala
authorAlan Knowles <alan@roojs.com>
Fri, 19 Jun 2015 05:39:18 +0000 (13:39 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 19 Jun 2015 05:39:18 +0000 (13:39 +0800)
src/JsRender/NodeToJs.vala

index 75f70dd..01462a8 100644 (file)
@@ -57,7 +57,11 @@ public class JsRender.NodeToJs : Object {
                this.cur_line = parent == null ? 0 : parent.cur_line  ; //-1 as we usuall concat onto the existin gline?
                this.ret = "";
                this.top = parent == null ? this : parent.top;
+               // reset the maps...
+               if (parent == null) {
+                       node.node_lines = new Gee.ArrayList<int>();
+                       node.node_lines_map = new Gee.HashMap<int,Node>();
+                }
        }