dont change height if sizing horizontally #1508

This commit is contained in:
barisusakli
2014-05-09 11:41:41 -04:00
parent c2fb4700de
commit d304bab4f1
2 changed files with 8 additions and 1 deletions

View File

@@ -197,8 +197,12 @@ Sockets.in = function(room) {
};
Sockets.getConnectedClients = function() {
var clients = io.sockets.clients();
var uids = [];
if (!io) {
return uids;
}
var clients = io.sockets.clients();
clients.forEach(function(client) {
if(client.uid && uids.indexOf(client.uid) === -1) {
uids.push(client.uid);