From: Alan Knowles Date: Tue, 19 May 2015 06:37:20 +0000 (+0800) Subject: src/JsRender/Node.vala X-Git-Url: http://git.roojs.org/?a=commitdiff_plain;h=d93182a027ce715cf83c6ee4e4cba7307a8af30e;p=app.Builder.js src/JsRender/Node.vala --- diff --git a/src/JsRender/Node.vala b/src/JsRender/Node.vala index f3e8c4c61..3f793a5c4 100644 --- a/src/JsRender/Node.vala +++ b/src/JsRender/Node.vala @@ -123,6 +123,8 @@ public class JsRender.Node : Object { this.line_end = -1; this.lines = new Gee.ArrayList(); this.line_map = new Gee.HashMap(); + this.node_lines = new Gee.ArrayList(); + this.node_line_map = new Gee.HashMap(); } @@ -138,11 +140,9 @@ public class JsRender.Node : Object { public void sortLines() { this.lines.sort((a,b) => { return (int)a-(int)b; - /*if (a == b) { - return 0; - } - return a < b ? -1 : 1; - */ + }); + this.node_lines.sort((a,b) => { + return (int)a-(int)b; }); }