diff --git a/l3config.js b/l3config.js index f1d0173..10edf1e 100644 --- a/l3config.js +++ b/l3config.js @@ -21,9 +21,6 @@ class L3Section { } return fs; } - values() { - this.inputs.map((input) => {input.id = input.value;}) - } render() { const options = this.inputs .flatMap(input => input.option()) @@ -150,12 +147,6 @@ class L3Input { return div; } - id() { - return this.id; - } - value() { - return this.input.value; - } option() { switch (this.input.type) { case 'radio': @@ -174,19 +165,6 @@ class L3Input { return ret; } - render() { - switch (this.input.type) { - case 'radio': - case 'checkbox': - if (!this.input.checked || this.input.value == 'undefined') return undefined; - break; - default: - if (!this.input.value) return undefined; - break; - } - - return `option ${this.optionName} '${this.input.value}'` - } } class L3MultiInput { @@ -234,9 +212,6 @@ class L3MultiInput { div.remove(); this.handleUpdate(); } - render() { - return this.inputs.map(input => input.render()).filter(input => !!input) - } option() { return this.inputs.map(input => input.option()); }