Skip to content

Commit

Permalink
Release 0.9.10
Browse files Browse the repository at this point in the history
  • Loading branch information
rauchg committed Aug 10, 2012
1 parent 4479c9d commit 5ab8b62
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 16 deletions.
7 changes: 7 additions & 0 deletions History.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@

0.9.10 / 2012-08-10
===================

* fix removeAllListeners to behave as expected.
* set withCredentials to true only if xdomain.
* socket: disable disconnect on unload by default.

0.9.9 / 2012-08-01
==================

Expand Down
20 changes: 10 additions & 10 deletions dist/socket.io.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Socket.IO.js build:0.9.9, development. Copyright(c) 2011 LearnBoost <[email protected]> MIT Licensed */
/*! Socket.IO.js build:0.9.10, development. Copyright(c) 2011 LearnBoost <[email protected]> MIT Licensed */

var io = ('undefined' === typeof module ? {} : module.exports);
(function() {
Expand All @@ -25,7 +25,7 @@ var io = ('undefined' === typeof module ? {} : module.exports);
* @api public
*/

io.version = '0.9.9';
io.version = '0.9.10';

/**
* Protocol implemented.
Expand Down Expand Up @@ -466,7 +466,6 @@ var io = ('undefined' === typeof module ? {} : module.exports);
&& /iPad|iPhone|iPod/i.test(navigator.userAgent);

})('undefined' != typeof io ? io : module.exports, this);

/**
* socket.io
* Copyright(c) 2011 LearnBoost <[email protected]>
Expand Down Expand Up @@ -577,11 +576,10 @@ var io = ('undefined' === typeof module ? {} : module.exports);
*/

EventEmitter.prototype.removeAllListeners = function (name) {
// TODO: enable this when node 0.5 is stable
//if (name === undefined) {
//this.$events = {};
//return this;
//}
if (name === undefined) {
this.$events = {};
return this;
}

if (this.$events && this.$events[name]) {
this.$events[name] = null;
Expand Down Expand Up @@ -1525,7 +1523,7 @@ var io = ('undefined' === typeof module ? {} : module.exports);
, 'reconnection limit': Infinity
, 'reopen delay': 3000
, 'max reconnection attempts': 10
, 'sync disconnect on unload': true
, 'sync disconnect on unload': false
, 'auto connect': true
, 'flash policy port': 10843
, 'manualFlush': false
Expand Down Expand Up @@ -1641,7 +1639,9 @@ var io = ('undefined' === typeof module ? {} : module.exports);
var xhr = io.util.request();

xhr.open('GET', url, true);
xhr.withCredentials = true;
if (this.isXDomain()) {
xhr.withCredentials = true;
}
xhr.onreadystatechange = function () {
if (xhr.readyState == 4) {
xhr.onreadystatechange = empty;
Expand Down
4 changes: 2 additions & 2 deletions dist/socket.io.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/io.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* @api public
*/

io.version = '0.9.9';
io.version = '0.9.10';

/**
* Protocol implemented.
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "socket.io-client"
, "description": "Socket.IO client for the browser and node.js"
, "version": "0.9.9"
, "version": "0.9.10"
, "main" : "./lib/io.js"
, "browserify": "./dist/socket.io.js"
, "homepage": "http://socket.io"
Expand All @@ -28,8 +28,8 @@
, "express": "2.5.x"
, "jade": "*"
, "stylus": "*"
, "socket.io": "0.9.9"
, "socket.io-client": "0.9.9"
, "socket.io": "0.9.10"
, "socket.io-client": "0.9.10"
}
, "engines": { "node": ">= 0.4.0" }
}

0 comments on commit 5ab8b62

Please sign in to comment.