mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-18 10:01:23 +01:00
refactor: replace fmg.modules with local vars
This commit is contained in:
parent
80bf0ef688
commit
a97e7f44f6
31 changed files with 141 additions and 95 deletions
|
|
@ -8,6 +8,8 @@ import {capitalize} from "utils/stringUtils";
|
|||
import {si} from "utils/unitUtils";
|
||||
import {closeDialogs} from "dialogs/utils";
|
||||
|
||||
let isLoaded = false;
|
||||
|
||||
export function overviewRegiments(state) {
|
||||
if (customization) return;
|
||||
closeDialogs(".stable");
|
||||
|
|
@ -18,8 +20,9 @@ export function overviewRegiments(state) {
|
|||
addLines();
|
||||
$("#regimentsOverview").dialog();
|
||||
|
||||
if (fmg.modules.overviewRegiments) return;
|
||||
fmg.modules.overviewRegiments = true;
|
||||
if (isLoaded) return;
|
||||
isLoaded = true;
|
||||
|
||||
updateHeaders();
|
||||
|
||||
$("#regimentsOverview").dialog({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue