Skip to content

Commit

Permalink
improve code
Browse files Browse the repository at this point in the history
  • Loading branch information
zoic21 committed Sep 22, 2024
1 parent 99459f7 commit fd6e569
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/dom/dom.utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ Element.prototype.setJeeValues = function(_object, _attr) {
selector = _attr + '[data-l1key="' + i.replaceAll('"', '') + '"][data-l2key="' + j.replaceAll('"', '') + '"]'
if ((is_array(_object[i][j]) || (this.querySelector(selector) !== null && this.querySelector(selector).getAttribute('multiple') == 'multiple')) || is_object(_object[i][j])) {
for (let k in _object[i][j]) {
this.querySelectorAll(_attr + '[data-l1key="' + i.replaceAll('"', '') + '"][data-l2key="' + j.replaceAll('"', '') + '"][data-l3key="' + k.replaceAll('"', '') + '"]').jeeValue(_object[i][j][k])
this.querySelectorAll(selector+'[data-l3key="' + k.replaceAll('"', '') + '"]').jeeValue(_object[i][j][k])
}
} else {
this.querySelectorAll(selector).jeeValue(_object[i][j])
Expand Down

0 comments on commit fd6e569

Please sign in to comment.