From afac6fddb20946a636e1404fc2266f6170baa273 Mon Sep 17 00:00:00 2001 From: yutent Date: Mon, 20 Nov 2023 13:59:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=B1=9E=E6=80=A7=E7=BB=91?= =?UTF-8?q?=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/html.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 89b2dde..e40d15b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "wkit", - "version": "1.10.13", + "version": "1.10.14", "type": "module", "description": "A library for building fast, lightweight web components.", "main": "dist/index.js", diff --git a/src/html.js b/src/html.js index ab13130..6c53405 100644 --- a/src/html.js +++ b/src/html.js @@ -481,7 +481,7 @@ class AttributePart { this.$parent = parent this.options = options if (strings.length > 2 || strings[0] !== '' || strings[1] !== '') { - this._$committedValue = new Array(strings.length - 1).fill('') + this._$committedValue = Array(strings.length - 1).fill(null) this.strings = strings } else { this._$committedValue = NOTHING