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) {
let children, options;
let children;
switch (va.type) {
case 'color':
children = [
@ -258,8 +258,8 @@ function configDialog(style) {
];
break;
default:
options = {
default: {
const options = {
va,
type: va.type,
onchange: updateVarOnChange,
@ -280,8 +280,8 @@ function configDialog(style) {
va.input = $create('input.config-value', options),
];
}
}
break;
}
resetter = resetter.cloneNode(true);