Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove debug console.log and optimize object copy
Fixes #2380
  • Loading branch information
AndreasMadsen authored and ry committed Dec 19, 2011
1 parent 21e7292 commit 3966e4e
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions lib/cluster.js
Expand Up @@ -29,11 +29,10 @@ function isObject(o) {
}

function extendObject(origin, add) {
console.log('object: ', add);
for (var name in add) {
if (Object.hasOwnProperty.call(add, name)) {
origin[name] = add[name];
}
var keys = Object.keys(add),
i = keys.length;
while(i--) {
origin[keys[i]] = add[keys[i]];
}
return origin;
}
Expand Down

0 comments on commit 3966e4e

Please sign in to comment.