Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/counter.js')
-rw-r--r--src/modules/counter.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/counter.js b/src/modules/counter.js
index 6a1da45..416ddb3 100644
--- a/src/modules/counter.js
+++ b/src/modules/counter.js
@@ -191,7 +191,6 @@ export default class Counter {
let counter = this.getCounter(allegiance, number);
if (counter) {
- this.container.placing.push(counter);
counter.classList.add(selectedClass);
let existingArcs = this.container.getExistingArcs(allegiance, number);
existingArcs.forEach(el => el.removeAttribute('clip-path'));
@@ -201,7 +200,6 @@ export default class Counter {
unSelect() {
let selected = this.container.getSelected();
- this.container.placing = [];
if (selected) {
let { troopNumber, troopAllegiance } = selected.dataset;
@@ -309,6 +307,8 @@ export default class Counter {
trace.remove();
}
+ delete el.dataset.previous;
+
if (proneCounter) {
proneCounter.dataset.preexisting = '';
}