From 5207f04d5b775bf4805d83c81aaad1cfcf3fe68a Mon Sep 17 00:00:00 2001 From: Kyle Gunger Date: Tue, 19 Jul 2022 00:31:02 -0400 Subject: Change how card id's are held, add swapCard --- scripts/cards/card.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'scripts/cards/card.js') 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 -- cgit v1.2.3