tangled
alpha
login
or
join now
tombl.dev
/
dhtml
1
fork
atom
a post-component library for building user-interfaces on the web.
1
fork
atom
overview
issues
pulls
pipelines
5 more bytes
tombl.dev
1 year ago
0b66fc66
5f432031
verified
This commit was signed with the committer's
known signature
.
tombl.dev
SSH Key Fingerprint:
SHA256:d8AHgL5V+3WdvGdDb3SVBfb0RIRJfkKcqhQ5aG1mVNk=
+2
-2
1 changed file
expand all
collapse all
unified
split
src
html.js
+2
-2
src/html.js
reviewed
···
161
161
render(value) {
162
162
const t = value instanceof BoundTemplateInstance ? value : singlePartTemplate(value)
163
163
164
164
-
if (this._instance?.template === t._template) {
164
164
+
if (this._instance?._template === t._template) {
165
165
this._instance.update(t._dynamics)
166
166
} else {
167
167
this.detach()
···
184
184
* @param {Span} span
185
185
*/
186
186
constructor(template, dynamics, span) {
187
187
-
this.template = template
187
187
+
this._template = template
188
188
const doc = /** @type {DocumentFragment} */ (template._content.cloneNode(true))
189
189
190
190
const nodeByPart = []