cleanup: jslint suggestions

This commit is contained in:
ali asaria 2014-09-30 08:02:58 -04:00
parent c520135340
commit 1d8acbbd72

View file

@ -269,7 +269,7 @@ io.sockets.on('connection', function (client) {
case 'setBoardSize': case 'setBoardSize':
var size = {}; var size = {};
size.width = scrub(message.data.width);; size.width = scrub(message.data.width);
size.height = scrub(message.data.height); size.height = scrub(message.data.height);
getRoom(client, function(room) { getRoom(client, function(room) {
@ -330,7 +330,7 @@ function initClient ( client )
db.getTheme( room, function(theme) { db.getTheme( room, function(theme) {
if (theme == null) theme = 'bigcards'; if (theme === null) theme = 'bigcards';
client.json.send( client.json.send(
{ {
@ -356,7 +356,7 @@ function initClient ( client )
roommates = []; roommates = [];
var j = 0; var j = 0;
for (i in roommates_clients) for (var i in roommates_clients)
{ {
if (roommates_clients[i].id != client.id) if (roommates_clients[i].id != client.id)
{ {
@ -374,7 +374,7 @@ function initClient ( client )
action: 'initialUsers', action: 'initialUsers',
data: roommates data: roommates
} }
) );
}); });
} }
@ -476,7 +476,3 @@ function cleanAndInitializeDemoRoom()
var db = new data(function() { var db = new data(function() {
cleanAndInitializeDemoRoom(); cleanAndInitializeDemoRoom();
}); });