don't switch to game if all questions have been processed

This commit is contained in:
Astro 2010-10-20 15:59:26 +02:00
parent cc3eed194c
commit 1dfb9c3eb5

View File

@ -79,7 +79,9 @@ function startQuiz() {
function switchToScoreboard() {
keyHandler = function(key) {
if (key === ' ') {
if (key === ' ' &&
currentQuestion < questions.length) {
$('#scoreboard').fadeOut(500, function() {
switchToGame();
});