Trying out incapsulation

This commit is contained in:
Kasper Rynning-Tønnesen
2015-06-23 18:55:26 +02:00
parent b22d3b3adf
commit fdab1aca56
6 changed files with 69 additions and 78 deletions

View File

@@ -153,8 +153,7 @@ io.on('connection', function(socket){
if(list !== undefined && list !== null && list != "")
{
in_list = true;
list = list.split(',');
coll = list[0].toLowerCase();
coll = list.toLowerCase();
socket.join(coll);
socket.join(short_id);
socket.emit("id", short_id);