Skip to content

Commit de2ba00

Browse files
committed
Smarter inlining for text nodes.
1 parent 7103010 commit de2ba00

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/coconut/vdom/Html.hx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ class Html {
2525
case v: v;
2626
}
2727

28-
static public inline function text(value:String):RenderResult
29-
return Text.inst.vnode(value, null, null, null);
28+
static public function text(value:String):RenderResult
29+
return inline Text.inst.vnode(value, null, null, null);//TODO: would be faster to have a dedicated text node type insteat of going through factories and all that
3030

3131
static public function raw(hxxMeta:HxxMeta<Element>, attr:HtmlFragmentAttr & { ?tag:String }):RenderResult {
3232
return HtmlFragment.byTag(attr.tag).vnode(attr, hxxMeta.key, hxxMeta.ref);

0 commit comments

Comments
 (0)