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:
84eaa91
)
src/JsRender/NodeToVala.vala
author
Alan Knowles
<alan@roojs.com>
Tue, 19 May 2015 05:05:18 +0000
(13:05 +0800)
committer
Alan Knowles
<alan@roojs.com>
Tue, 19 May 2015 05:05:18 +0000
(13:05 +0800)
src/JsRender/NodeToVala.vala
patch
|
blob
|
history
diff --git
a/src/JsRender/NodeToVala.vala
b/src/JsRender/NodeToVala.vala
index
c3d6296
..
26f550c
100644
(file)
--- a/
src/JsRender/NodeToVala.vala
+++ b/
src/JsRender/NodeToVala.vala
@@
-389,15
+389,16
@@
public class JsRender.NodeToVala : Object {
}
if (this.depth < 1) {
}
if (this.depth < 1) {
- this.node.ctorline = this.curline;
- this.addLine(this.pad + "public " + this.xcls + "(" +
- cargs_str +")\n" + this.pad + "{");
+
+ // top level - does not pass the top level element..
+ this.addLine(this.pad + "public " + this.xcls + "(" + cargs_str +")")
+ this.addLine(this.pad + "{");
} else {
} else {
- //code
-
- this.
ret+= this.pad + "public " + this.xcls + "(" +
-
this.top.xcls + " _owner " + cargs_str + ")\n" + this.pad + "{\n"
;
+
+
+ this.
addLine(this.pad + "public " + this.xcls + "(" + this.top.xcls + " _owner " + cargs_str + ")");
+
this.addLine(this.pad + "{")
;
}
}