game-client.js
function drawLobby(games) {
    $(LOBBYCHAT).append($(CHATPNL)[0]);
    $(CHATPNL).addClass('lobby_chat_panel');
    drawGameList(games);

    // setup future calls to get game list
    function pollGames() {
        $.getJSON("/games", drawGameList);
        GETGAMESTID = setTimeout(pollGames, 2000);
    }
    GETGAMESTID = setTimeout(pollGames, 2000);
}
function drawLobby(games) {
    $(LOBBYCHAT).append($(CHATPNL)[0]);
    $(CHATPNL).addClass('lobby_chat_panel');
    drawGameList(games);

    // setup future calls to get game list
    function pollGames() {
        $.getJSON("/games", drawGameList);
        GETGAMESTID = setTimeout(pollGames, 2000);
    }
    GETGAMESTID = setTimeout(pollGames, 2000);
}
function drawLobby ( games ) { $ ( LOBBYCHAT ) . append ( $ ( CHATPNL ) [ 0 ] ) ; $ ( CHATPNL ) . addClass ( 'lobby_chat_panel' ) ; drawGameList ( games ) ; // setup future calls to get game list function pollGames ( ) { $ . getJSON ( "/games" , drawGameList ) ; GETGAMESTID = setTimeout ( pollGames , 2000 ) ; } GETGAMESTID = setTimeout ( pollGames , 2000 ) ; }
Draw the lobby.
Draw the lobby .