refactoring
This commit is contained in:
parent
d62d04f806
commit
a31ee0a0e9
@ -22,12 +22,12 @@ function apiOptionsGet(optionsContext) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function apiOptionsSet(changedOptions, optionsContext, source) {
|
async function apiOptionsSet(changedOptions, optionsContext, source) {
|
||||||
let options = await apiOptionsGet(optionsContext);
|
const options = await apiOptionsGet(optionsContext);
|
||||||
|
|
||||||
function getValuePaths(obj) {
|
function getValuePaths(obj) {
|
||||||
let valuePaths = [];
|
let valuePaths = [];
|
||||||
let nodes = [{
|
let nodes = [{
|
||||||
obj: changedOptions,
|
obj,
|
||||||
path: []
|
path: []
|
||||||
}];
|
}];
|
||||||
while (nodes.length > 0) {
|
while (nodes.length > 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user