projects
/
app.Builder.js
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
092110e
)
src/JsRender/NodeToJs.vala
author
Alan Knowles
<alan@roojs.com>
Fri, 19 Jun 2015 05:39:18 +0000
(13:39 +0800)
committer
Alan Knowles
<alan@roojs.com>
Fri, 19 Jun 2015 05:39:18 +0000
(13:39 +0800)
src/JsRender/NodeToJs.vala
patch
|
blob
|
history
diff --git
a/src/JsRender/NodeToJs.vala
b/src/JsRender/NodeToJs.vala
index
75f70dd
..
01462a8
100644
(file)
--- a/
src/JsRender/NodeToJs.vala
+++ b/
src/JsRender/NodeToJs.vala
@@
-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>();
+ }
}