refactoring

This commit is contained in:
siikamiika 2019-10-28 00:09:36 +02:00
parent d62d04f806
commit a31ee0a0e9

View File

@ -22,12 +22,12 @@ function apiOptionsGet(optionsContext) {
}
async function apiOptionsSet(changedOptions, optionsContext, source) {
let options = await apiOptionsGet(optionsContext);
const options = await apiOptionsGet(optionsContext);
function getValuePaths(obj) {
let valuePaths = [];
let nodes = [{
obj: changedOptions,
obj,
path: []
}];
while (nodes.length > 0) {