delete old cards after re-initializing after a disconnect
This commit is contained in:
parent
2fda4f3785
commit
0c32b9a607
1 changed files with 3 additions and 0 deletions
|
@ -330,6 +330,9 @@ function randomCardColour()
|
||||||
|
|
||||||
function initCards( cardArray )
|
function initCards( cardArray )
|
||||||
{
|
{
|
||||||
|
//first delete any cards that exist
|
||||||
|
$('.card').remove();
|
||||||
|
|
||||||
cards = cardArray;
|
cards = cardArray;
|
||||||
|
|
||||||
for (i in cardArray)
|
for (i in cardArray)
|
||||||
|
|
Loading…
Add table
Reference in a new issue