Fix: set dirty prop in one line

This commit is contained in:
eight 2017-11-09 09:02:07 +08:00
parent c17433c350
commit dd64551a36

View File

@ -137,8 +137,7 @@ function configDialog(style) {
function useDefault() { function useDefault() {
for (const key of Object.keys(vars)) { for (const key of Object.keys(vars)) {
const va = vars[key]; const va = vars[key];
va.dirty = va.value !== null && va.value !== undefined && va.dirty = va.value !== null && va.value !== undefined && va.value !== va.default;
va.value !== va.default;
va.value = null; va.value = null;
} }
drawValues(); drawValues();