summaryrefslogtreecommitdiff
path: root/scripts/cards/card.js
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2022-07-19 00:31:02 -0400
committerKyle Gunger <kgunger12@gmail.com>2022-07-19 00:31:02 -0400
commit5207f04d5b775bf4805d83c81aaad1cfcf3fe68a (patch)
tree66b31b953af2df99f2b74e296b4f77555b234642 /scripts/cards/card.js
parent1dab192a329b1ad966b0c1e0401eeaa78d5b752e (diff)
Change how card id's are held, add swapCard
Diffstat (limited to 'scripts/cards/card.js')
-rw-r--r--scripts/cards/card.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/scripts/cards/card.js b/scripts/cards/card.js
index 3ca435c..7246db3 100644
--- a/scripts/cards/card.js
+++ b/scripts/cards/card.js
@@ -15,9 +15,7 @@ class Card {
this.e.style.top = "0px";
this.e.card = this;
- this.getID = function() {
- return id;
- }
+ this.id = id;
}
// Generate a card with basic text only