sync working code, and import type-doc

This commit is contained in:
2023-07-17 17:24:49 +08:00
parent 7ab7a7094a
commit 3e9ee59178
43 changed files with 1024 additions and 1553 deletions

View File

@ -40,8 +40,8 @@ function createRadiobox(opts = {}) {
if (opts.enabled === false) {
input.disabled = true;
}
if (opts.customerAttributes != null) {
for (let entry of Object.entries(opts.customerAttributes)) {
if (opts.customAttributes != null) {
for (let entry of Object.entries(opts.customAttributes)) {
input.setAttribute(entry[0], entry[1]);
}
}
@ -66,8 +66,8 @@ function createCheckbox(opts = {}) {
if (opts.enabled === false) {
input.disabled = true;
}
if (opts.customerAttributes != null) {
for (let entry of Object.entries(opts.customerAttributes)) {
if (opts.customAttributes != null) {
for (let entry of Object.entries(opts.customAttributes)) {
input.setAttribute(entry[0], entry[1]);
}
}