Wrap default & remove unnecessary break
This commit is contained in:
parent
e2b7f194c3
commit
1edfda5417
|
@ -213,7 +213,7 @@ function configDialog(style) {
|
||||||
])
|
])
|
||||||
]);
|
]);
|
||||||
for (const va of vars) {
|
for (const va of vars) {
|
||||||
let children, options;
|
let children;
|
||||||
switch (va.type) {
|
switch (va.type) {
|
||||||
case 'color':
|
case 'color':
|
||||||
children = [
|
children = [
|
||||||
|
@ -258,8 +258,8 @@ function configDialog(style) {
|
||||||
];
|
];
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default: {
|
||||||
options = {
|
const options = {
|
||||||
va,
|
va,
|
||||||
type: va.type,
|
type: va.type,
|
||||||
onchange: updateVarOnChange,
|
onchange: updateVarOnChange,
|
||||||
|
@ -280,8 +280,8 @@ function configDialog(style) {
|
||||||
va.input = $create('input.config-value', options),
|
va.input = $create('input.config-value', options),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
resetter = resetter.cloneNode(true);
|
resetter = resetter.cloneNode(true);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user