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