examples/grow21/client/js/Game.js
function(msg) {
      var gameOverElement = document.getElementById('gameOver'),
          gameOverMsgElement = document.getElementById('gameOverMsg'),
          waitingForPlayerElem = document.getElementById('waitingForPlayer');
      if (msg === false)  {
        gameOverElement.style.display = 'none';
      }
      else {
        gameOverMsgElement.innerText = msg;
        gameOverElement.style.display = 'block';
        waitingForPlayerElem.style.display = 'none';
      }
    }
function(msg) {
      var gameOverElement = document.getElementById('gameOver'),
          gameOverMsgElement = document.getElementById('gameOverMsg'),
          waitingForPlayerElem = document.getElementById('waitingForPlayer');
      if (msg === false)  {
        gameOverElement.style.display = 'none';
      }
      else {
        gameOverMsgElement.innerText = msg;
        gameOverElement.style.display = 'block';
        waitingForPlayerElem.style.display = 'none';
      }
    }
function ( msg ) { var gameOverElement = document . getElementById ( 'gameOver' ) , gameOverMsgElement = document . getElementById ( 'gameOverMsg' ) , waitingForPlayerElem = document . getElementById ( 'waitingForPlayer' ) ; if ( msg === false ) { gameOverElement . style . display = 'none' ; } else { gameOverMsgElement . innerText = msg ; gameOverElement . style . display = 'block' ; waitingForPlayerElem . style . display = 'none' ; } }
If passed "false", hides the gameOver dialog, otherwise displays string
If passed false hides the gameOver dialog otherwise displays string