Skip to content

Commit

Permalink
Remove some spaces.
Browse files Browse the repository at this point in the history
  • Loading branch information
Manuel Baclet committed Jun 11, 2015
1 parent 89bd581 commit f7e7c07
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.js
Expand Up @@ -204,20 +204,20 @@ Adapter.prototype.clients = function(rooms, fn){
* @api private
*/

function Room() {
function Room(){
if (!(this instanceof Room)) return new Room();
this.sockets = {};
this.length = 0;
}

Room.prototype.add = function(id) {
Room.prototype.add = function(id){
if (!this.sockets.hasOwnProperty(id)) {
this.sockets[id] = true;
this.length++;
}
};

Room.prototype.del = function(id) {
Room.prototype.del = function(id){
if (this.sockets.hasOwnProperty(id)) {
delete this.sockets[id];
this.length--;
Expand Down

0 comments on commit f7e7c07

Please sign in to comment.