Skip to content

Commit aad0719

Browse files
committed
fix stupidity and add feature I forgot,
1 parent 427977d commit aad0719

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/dom-functions.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,15 @@ export const databind = ops => {
409409
}
410410
})
411411

412-
if (core.ops.host) core.bind(core.ops.host, core.ops.key)
412+
core.text = view => {
413+
const text = new Text()
414+
text.boundby = core.bind(text, 'textContent', view)
415+
return text
416+
}
417+
418+
if (core.host && core.ops.key) {
419+
core.bind(core.host, core.ops.key)
420+
}
413421

414422
return core
415423
}

0 commit comments

Comments
 (0)