From 304d320cb3727746e89f3c33431a49ad56dbf670 Mon Sep 17 00:00:00 2001 From: yutent Date: Fri, 17 Mar 2023 19:02:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=80=E5=A4=84=E7=BB=A7?= =?UTF-8?q?=E6=89=BF=E8=B0=83=E7=94=A8=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/html.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/html.js b/src/html.js index d852695..84e2e8d 100644 --- a/src/html.js +++ b/src/html.js @@ -559,11 +559,11 @@ class AttributePart { } } if (change && !noCommit) { - this.#commitValue(value) + this.commitValue(value) } } - #commitValue(value) { + commitValue(value) { let isBoolAttr = boolMap[this.name] // ref属性不渲染到节点上 if (this.name === 'ref') { @@ -594,7 +594,7 @@ class PropertyPart extends AttributePart { super(...args) } - #commitValue(value) { + commitValue(value) { this.element[this.name] = value } }