Web Dev Solutions

Catalin Mititiuc

From 8667e7e6da29e5615c5e3b1808d36490cf4c4ba7 Mon Sep 17 00:00:00 2001 From: Catalin Mititiuc Date: Wed, 22 May 2024 09:26:32 -0700 Subject: Don't export unnecessary functions --- src/modules/record_sheet.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/modules/record_sheet.js') 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); -- cgit v1.2.3