       data:
         akey: tupelo.player.akey
         game_id: tupelo.game_id
-
       success: leaveOk
       error: (xhr, astatus, error) ->
-        leaveOk()  if ajaxErr(xhr, astatus, error) is true
+        leaveOk() if ajaxErr(xhr, astatus, error) is true
 
   $("#game_create_btn").click ->
     # TODO: should we cancel timers already here?

      url: "/ajax/game/create"
      data:
        akey: tupelo.player.akey

      success: gameCreateOk
      error: ajaxErr


    T.log tupelo
    dbg()
    setState "initial", "fast"

  gameCreateOk = (result) ->
    tupelo.game_id = result
    T.log tupelo
    dbg()
    $("p#joined_game").html "joined game #{tupelo.game_id}"
    setState "gameCreated", "fast"
    tupelo.event_fetch_timer = new T.Timer("/ajax/get_events", 2000, eventsOk,
      data:
