small cleanups for callback closures
This commit is contained in:
parent
6f5c338cc5
commit
939464f280
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user