robhawkes/mozilla-festival — pull request #1 by inheritancejon (2014-03-08 08:53:21+00:00)
Title: player index of '0' != false

When player at index 0

players[0];

leaves, it should remove them from the players array. Without this change, javascript returns '0' from the playerByID function, and it is interpreted as 'false'. The player id is then left in the array, leaving one player always active.

Also, I'm so new it hurts. I was just working through your example from a few years ago, found this error, and figure its time to try baby's first pull request. Thanks if you approve.