small cleanups for callback closures

This commit is contained in:
Johannes Kimmel 2023-04-24 16:50:33 +02:00
parent 6f5c338cc5
commit 939464f280
1 changed files with 3 additions and 3 deletions

View File

@ -101,7 +101,7 @@ class L3MultiSection {
let fieldset = makeFieldset();
fieldset.append(
makeLegend(
makeButton(`+ ${this.legend}`, () => { fieldset.appendChild(this.#makeSection()); }),
makeButton(`+ ${this.legend}`, () => fieldset.appendChild(this.#makeSection())),
)
);
return fieldset;
@ -246,7 +246,7 @@ class L3MultiInput {
let fieldset = makeFieldset();
fieldset.append(
makeLegend(
makeButton(`+ ${this.label}`, () => { fieldset.append(this.#makeInput()); }),
makeButton(`+ ${this.label}`, () => fieldset.append(this.#makeInput())),
)
);
return fieldset;
@ -260,7 +260,7 @@ class L3MultiInput {
delbutton.setAttribute('type', 'button');
delbutton.classList.add('del');
delbutton.innerHTML = '-';
delbutton.addEventListener('click', () => { this.#removeInput(newinput, div); });
delbutton.addEventListener('click', () => this.#removeInput(newinput, div));
div.prepend(delbutton);
return div;
}