Permalink
Browse files

Fixed leaked global

  • Loading branch information...
rauchg committed Jul 28, 2010
1 parent 09094a2 commit d94ff19cad42dba7a7a376900504abe7bcd58de2
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/socket.js
View
@@ -34,7 +34,7 @@
match = this.options.document.cookie.match('(?:^|;)\\s*socket\.io=([^;]*)');
if (match) transports = [decodeURIComponent(match[1])];
}
- for (var i = 0; transport = transports[i]; i++){
+ for (var i = 0, transport; transport = transports[i]; i++){
if (io.Transport[transport]
&& io.Transport[transport].check()
&& (!this._isXDomain() || io.Transport[transport].xdomainCheck())){

0 comments on commit d94ff19

Please sign in to comment.