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

index dd5c840..6d94e23 100644 (file)
@@ -64,7 +64,7 @@ public class JsRender.NodeToVala : Object {
                // initialize line data..
                node.line_start = this.cur_line;
                node.line_end  = this.cur_line;
-               node.lines = new Gee.ArrayList();
+               node.lines = new Gee.ArrayList<int>();
                node.line_map = new Gee.HashMap<int,string>();
                 
                
@@ -805,6 +805,8 @@ public class JsRender.NodeToVala : Object {
        void iterChildren()
        {
                this.node.line_end = this.cur_line;
+               this.node.sortLines();
+               
                        
                if (this.depth > 0) {
                        this.addLine(this.inpad + "}");