From d5a8c25287a2616153bfe03d94f5137c22df0436 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Mon, 2 Nov 2015 10:53:41 +0800 Subject: [PATCH] src/JsRender/NodeToJs.vala --- src/JsRender/NodeToJs.vala | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/JsRender/NodeToJs.vala b/src/JsRender/NodeToJs.vala index e50c698b3..26794e35c 100644 --- a/src/JsRender/NodeToJs.vala +++ b/src/JsRender/NodeToJs.vala @@ -14,10 +14,12 @@ public class JsRender.NodeToJs : Object { static uint indent = 1; static string indent_str = " "; + + Node node; Gee.ArrayList doubleStringProps; // need to think if this is a good idea like this string pad; - + JsRender jsrender; Gee.HashMap out_props; Gee.HashMap out_listeners; @@ -52,6 +54,9 @@ public class JsRender.NodeToJs : Object { this.cur_line = parent == null ? 0 : parent.cur_line ; //-1 as we usuall concat onto the existin gline? + if (parent != null) { + this.jsrender = parent.jsrender; + } this.ret = ""; this.top = parent == null ? this : parent.top; // reset the maps... -- 2.39.2