Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in clone code #8

Closed
nsalyzyn opened this issue May 12, 2010 · 1 comment
Closed

Error in clone code #8

nsalyzyn opened this issue May 12, 2010 · 1 comment

Comments

@nsalyzyn
Copy link

I tried to use your transportOptions, but it didn't work because of an error here:

@@ -46,7 +46,7 @@ io.util = {};
                                return clone;
                        } else if (typeof item == 'object') {
                                clone = {};
-                               for (var key in object) clone[key] = object.clone(object[key]);
+                               for (var key in item) clone[key] = object.clone(item[key]);
                                return clone;
                        } else {
                                return item;
@rauchg
Copy link
Contributor

rauchg commented Jul 4, 2010

Fixed

rauchg pushed a commit that referenced this issue Apr 12, 2016
Complete functionality. Add Test.
DanteLans pushed a commit to DanteLans/socket.io-client that referenced this issue Nov 9, 2023
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants