Wrap default & remove unnecessary break

This commit is contained in:
Rob Garrison 2018-09-05 07:43:45 -05:00
parent e2b7f194c3
commit 1edfda5417

View File

@ -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);