src/JsRender/NodeToVala.vala
authorAlan Knowles <alan@roojs.com>
Tue, 19 May 2015 04:39:03 +0000 (12:39 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 19 May 2015 04:39:03 +0000 (12:39 +0800)
src/JsRender/NodeToVala.vala

index c0fd8b5..91d53d3 100644 (file)
@@ -51,7 +51,7 @@ public class JsRender.NodeToVala : Object {
                this.xcls = node.xvala_xcls;
                this.ret = "";
                this.line = 0;
-               this.top = top == null ? this : top;
+               this.top = parent == null ? this : parent.top;
                this.ignoreList = new Gee.ArrayList<string>();
                this.ignoreWrappedList  = new Gee.ArrayList<string>();
                this.myvars = new Gee.ArrayList<string>();