index : btroops | |
Virtual board game-aid for BattleTroops, an infantry combat simulator wargame published by FASA in 1989. |
aboutsummaryrefslogtreecommitdiff |
diff options
author | Catalin Mititiuc <webdevcat@proton.me> | 2024-05-22 09:26:32 -0700 |
---|---|---|
committer | Catalin Mititiuc <webdevcat@proton.me> | 2024-05-22 09:26:32 -0700 |
commit | 8667e7e6da29e5615c5e3b1808d36490cf4c4ba7 (patch) | |
tree | c68618fc2b2ceff3662c422c78b5451820edc3eb /src/modules/record_sheet.js | |
parent | 556abf9bbf2e524f1fbe3c44d6fed24192ff4cce (diff) |
Don't export unnecessary functions
Diffstat (limited to 'src/modules/record_sheet.js')
-rw-r--r-- | src/modules/record_sheet.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/modules/record_sheet.js b/src/modules/record_sheet.js index b180a8e..f13f5f8 100644 --- a/src/modules/record_sheet.js +++ b/src/modules/record_sheet.js @@ -137,11 +137,7 @@ function select(data) { record.classList.add('selected'); } -export function getSelected() { - return document.querySelector('.soldier-record.selected'); -} - -export function endMove() { +function endMove() { const selected = getSelected(); if (selected) { @@ -151,6 +147,10 @@ export function endMove() { deselect(); } +export function getSelected() { + return document.querySelector('.soldier-record.selected'); +} + export function start(startLoc, units) { clear(); const forces = createRecords(units); |