Compare commits

...

2 Commits
0.3.2 ... 0.3.3

Author SHA1 Message Date
Virtuo
dd3d829173 Correct bug due to variable name clash.
IMO: this kind of code should be put in an external lib and 100% tested.
2010-05-21 13:09:14 +02:00
Guillermo Rauch
fbce6379a5 Note about submodules 2010-05-13 22:05:31 -03:00
2 changed files with 15 additions and 12 deletions

View File

@@ -36,12 +36,15 @@ By default, the server will intercept requests that contain `socket.io` in the p
On the client side, you should use the [Socket.IO client](https://github.com/LearnBoost/Socket.IO) to connect.
## Checking out
## Notes
After cloning the repository, remember to run
IMPORTANT! When checking out the git repo, make sure to include the submodules. One way to do it is:
git submodule init
git submodule update
git clone [repo] --recursive
Another, once cloned
git submodule update --init --recursive
## Demo

View File

@@ -2,15 +2,15 @@
// Copyright (c) 2006-2009 Valerio Proietti, <http://mad4milk.net/>
var clone = this.clone = function(item){
var clone;
var cloned;
if (item instanceof Array){
clone = [];
for (var i = 0; i < item.length; i++) clone[i] = clone(item[i]);
return clone;
cloned = [];
for (var i = 0; i < item.length; i++) cloned[i] = clone(item[i]);
return cloned;
} else if (typeof item == 'object') {
clone = {};
for (var key in object) clone[key] = clone(object[key]);
return clone;
cloned = {};
for (var key in object) cloned[key] = clone(object[key]);
return cloned;
} else {
return item;
}
@@ -35,4 +35,4 @@ this.merge = function(source, k, v){
for (var key in object) mergeOne(source, key, object[key]);
}
return source;
};
};