Fix names not being removed on disconnect in Firefox

Fixes Issue #3
This commit is contained in:
calzoneman 2013-03-17 09:42:22 -05:00
parent 92d73026be
commit a8076f0e15
1 changed files with 1 additions and 1 deletions

View File

@ -222,7 +222,7 @@ function initCallbacks() {
socket.on('userLeave', function(data) {
var users = $('#userlist').children();
for(var i = 0; i < users.length; i++) {
var name = users[i].children[1].innerText;
var name = users[i].children[1].innerHTML;
if(name == data.name) {
$('#userlist')[0].removeChild(users[i]);
}