Add maps of objects + add entity effect property

This commit is contained in:
Misode
2019-10-04 10:15:47 +02:00
parent 148f5a19a3
commit 5e9fbc0f89
4 changed files with 98 additions and 11 deletions
+2 -1
View File
@@ -242,6 +242,8 @@ function addToMap(el) {
node[map][key] = 0;
} else if (type === 'boolean') {
node[map][key] = false;
} else if (type === 'object') {
node[map][key] = {};
} else {
node[map][key] = "";
}
@@ -275,7 +277,6 @@ function toggleCollapseObject(el) {
function updateField(el) {
let path = getPath(el);
console.log(path);
let $field = $(el).closest('[data-index]');
let field = path.pop();
let node = getNode(path);