look, a bug!
This commit is contained in:
parent
597a7030c5
commit
3eb90e938f
10
quiz.js
10
quiz.js
|
@ -85,11 +85,11 @@ function switchToScoreboard() {
|
||||||
|
|
||||||
function updateScores() {
|
function updateScores() {
|
||||||
for(var i = 0; i < playerNames.length; i++) {
|
for(var i = 0; i < playerNames.length; i++) {
|
||||||
if (!playerNames[i])
|
if (playerNames[i]) {
|
||||||
continue;
|
// FIXME: eq(i) is bad when first player is empty
|
||||||
|
$('#scoreboard dl dd').eq(i).text(playerScores[i]);
|
||||||
$('#scoreboard dl dd').eq(i).text(playerScores[i]);
|
$('#players .player'+i+' .score').text(playerScores[i]);
|
||||||
$('#players .player'+i+' .score').text(playerScores[i]);
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue