Skip to content

Commit

Permalink
indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
ericz committed Jun 22, 2011
1 parent 61cca17 commit 2606fc3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/user.js
Expand Up @@ -82,13 +82,13 @@ exports.initialize = function (now) {
// Look in the scopeTable directly, rather than using Group.get
// method. This resolves functions to the real functions
// rather than a multicaller.
value = this.groups[keys[i++]].scopeTable.get(fqn);
value = this.groups[keys[i++]].scopeTable.get(fqn);
}
// If this is a function, bind to the current user
if (typeof value === 'function') {
var userClone = nowUtil.clone(this);
userClone.fqn = fqn;
value = value.bind(userClone);
var userClone = nowUtil.clone(this);
userClone.fqn = fqn;
value = value.bind(userClone);
}

// Cache it in this user's scopeTable for quicker access.
Expand All @@ -108,7 +108,7 @@ exports.initialize = function (now) {
this.scopeTable.set(fqn, Object.keys(fqn));
var flattenedVal = nowUtil.flatten(val, fqn);
for (var i = 0, key = Object.keys(flattenedVal), ll = key.length; i < ll; i++) {
this.scopeTable.set(key[i], flattenedVal[key[i]]);
this.scopeTable.set(key[i], flattenedVal[key[i]]);
}
this.socket.emit('rv', flattenedVal);
} else {
Expand Down

0 comments on commit 2606fc3

Please sign in to comment.