a post-component library for building user-interfaces on the web.

5 more bytes

tombl.dev 0b66fc66 5f432031

verified
+2 -2
+2 -2
src/html.js
··· 161 161 render(value) { 162 162 const t = value instanceof BoundTemplateInstance ? value : singlePartTemplate(value) 163 163 164 - if (this._instance?.template === t._template) { 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 - this.template = template 187 + this._template = template 188 188 const doc = /** @type {DocumentFragment} */ (template._content.cloneNode(true)) 189 189 190 190 const nodeByPart = []