nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8fced8f
)
lib: HTML clear children before each render to avoid duplicates
author
Alexandre Terrasa
<alexandre@moz-code.org>
Fri, 14 Jun 2013 14:48:39 +0000
(10:48 -0400)
committer
Alexandre Terrasa
<alexandre@moz-code.org>
Fri, 14 Jun 2013 14:48:39 +0000
(10:48 -0400)
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
lib/html.nit
patch
|
blob
|
history
diff --git
a/lib/html.nit
b/lib/html.nit
index
6e8f8a6
..
5b50ceb
100644
(file)
--- a/
lib/html.nit
+++ b/
lib/html.nit
@@
-39,6
+39,7
@@
class HTMLPage
# Render the page as a html string
fun render: String do
+ root.children.clear
open("head")
head
close("head")