This commit is contained in:
gnieark 2016-05-14 23:45:16 +02:00
parent 9f1118436a
commit d9ba41ed4d

View File

@ -22,7 +22,11 @@ function connectFour(bot1,bot2,xd_check, newGame){
if (newGame === undefined){ if (newGame === undefined){
newGame = true; newGame = true;
} }
document.getElementById('fightResult').innerHTML = '';
//empty
while (document.getElementById('fightResult').firstChild) {
document.getElementById('fightResult').removeChild(document.getElementById('fightResult').firstChild);
}
//create grid //create grid
var table=createElem('table',{'class':'battleGrid'}); var table=createElem('table',{'class':'battleGrid'});