We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 427977d commit aad0719Copy full SHA for aad0719
src/dom-functions.js
@@ -409,7 +409,15 @@ export const databind = ops => {
409
}
410
})
411
412
- if (core.ops.host) core.bind(core.ops.host, core.ops.key)
+ 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
421
422
return core
423
0 commit comments