remove debug logging
This commit is contained in:
parent
f9c45ccf66
commit
fcbb9d3580
10
l3config.js
10
l3config.js
|
@ -33,8 +33,6 @@ class L3Section {
|
|||
return undefined
|
||||
}
|
||||
|
||||
console.log("options:", options)
|
||||
|
||||
var compiledopts = {};
|
||||
for (const option of options) {
|
||||
if (!compiledopts[option.optionName]) {
|
||||
|
@ -42,12 +40,10 @@ class L3Section {
|
|||
}
|
||||
compiledopts[option.optionName].push(option.value)
|
||||
}
|
||||
console.log("compiledopts:", compiledopts)
|
||||
|
||||
let optstrs = [];
|
||||
for (const opt in compiledopts) {
|
||||
const values = compiledopts[opt];
|
||||
console.log("values:", values);
|
||||
if (values.length == 1) {
|
||||
optstrs.push(`option ${opt} '${values[0]}'`);
|
||||
} else {
|
||||
|
@ -73,7 +69,6 @@ class L3MultiSection {
|
|||
let fieldsetlegend = document.createElement('legend');
|
||||
let fieldsetbutton = document.createElement('button');
|
||||
fieldsetbutton.setAttribute('type', 'button');
|
||||
console.log(this.template);
|
||||
fieldsetbutton.addEventListener('click', () => this.addSection(fieldset));
|
||||
fieldsetbutton.innerHTML = `+ ${this.legend}`;
|
||||
fieldsetlegend.appendChild(fieldsetbutton);
|
||||
|
@ -86,7 +81,6 @@ class L3MultiSection {
|
|||
this.sections.push(newsection);
|
||||
let nodes = newsection.node();
|
||||
for (let input of nodes.getElementsByTagName('input')) {
|
||||
console.log(input);
|
||||
input.addEventListener('input', () => this.handleUpdate())
|
||||
}
|
||||
|
||||
|
@ -100,9 +94,7 @@ class L3MultiSection {
|
|||
this.handleUpdate();
|
||||
}
|
||||
removeSection(del, nodes) {
|
||||
console.log(this.sections);
|
||||
this.sections = this.sections.filter(section => section != del);
|
||||
console.log(this.sections);
|
||||
nodes.remove();
|
||||
this.handleUpdate();
|
||||
}
|
||||
|
@ -179,7 +171,6 @@ class L3Input {
|
|||
value: this.input.value,
|
||||
};
|
||||
|
||||
console.log("option:", ret, this.optionName, this.input.value);
|
||||
return ret;
|
||||
}
|
||||
render() {
|
||||
|
@ -257,7 +248,6 @@ class L3Config {
|
|||
this.sections.push(section)
|
||||
}
|
||||
handleUpdate() {
|
||||
console.log('here');
|
||||
renderConfig(this.sections.flatMap(section => section.render()).filter(section => !!section));
|
||||
}
|
||||
node() {
|
||||
|
|
Loading…
Reference in New Issue