Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/record_sheet.js')
-rw-r--r--src/modules/record_sheet.js10
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);