mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 09:41:24 +01:00
v1.5.74 - add el existence check
This commit is contained in:
parent
b256030602
commit
ec4b08c9d8
1 changed files with 3 additions and 3 deletions
|
|
@ -779,9 +779,9 @@ function parseLoadedData(data) {
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
|
||||||
const notHidden = selection => selection.style("display") !== "none";
|
const notHidden = selection => selection?.style("display") !== "none";
|
||||||
const hasChildren = selection => selection.node()?.hasChildNodes();
|
const hasChildren = selection => selection?.node()?.hasChildNodes();
|
||||||
const hasChild = (selection, selector) => selection.node()?.querySelector(selector);
|
const hasChild = (selection, selector) => selection?.node()?.querySelector(selector);
|
||||||
const turnOn = el => document.getElementById(el).classList.remove("buttonoff");
|
const turnOn = el => document.getElementById(el).classList.remove("buttonoff");
|
||||||
|
|
||||||
void function restoreLayersState() {
|
void function restoreLayersState() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue