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:
d9ba999
)
src/JsRender/Node.vala
author
Alan Knowles
<alan@roojs.com>
Wed, 20 May 2015 08:23:56 +0000
(16:23 +0800)
committer
Alan Knowles
<alan@roojs.com>
Wed, 20 May 2015 08:23:56 +0000
(16:23 +0800)
src/JsRender/Node.vala
patch
|
blob
|
history
diff --git
a/src/JsRender/Node.vala
b/src/JsRender/Node.vala
index
807082c
..
2710916
100644
(file)
--- a/
src/JsRender/Node.vala
+++ b/
src/JsRender/Node.vala
@@
-147,22
+147,29
@@
public class JsRender.Node : Object {
}
public Node? lineToNode(int line)
{
}
public Node? lineToNode(int line)
{
+ print("Searching for line %d\n");
var l = -1;
foreach(int el in this.node_lines) {
var l = -1;
foreach(int el in this.node_lines) {
+ print("?match %d\n", el);
if (el < line) {
if (el < line) {
+
l = el;
l = el;
+ print("LESS\n");
continue;
}
if (el == line) {
continue;
}
if (el == line) {
+ print("SAME\n");
l = el;
}
if (l > -1) {
l = el;
}
if (l > -1) {
+ print("RETURNING NODE ON LINE %d", l);
return this.node_lines_map.get(l);
}
return null;
}
if (l > -1) {
return this.node_lines_map.get(l);
}
return null;
}
if (l > -1) {
+ print("RETURNING NODE ON LINE %d", l);
return this.node_lines_map.get(l);
}
return null;
return this.node_lines_map.get(l);
}
return null;