Permalink
Browse files

Release 0.9.10

  • Loading branch information...
1 parent 4479c9d commit 5ab8b620f20598a80a49a06d92fa0988984c7f74 @rauchg rauchg committed Aug 10, 2012
Showing with 23 additions and 16 deletions.
  1. +7 −0 History.md
  2. +10 −10 dist/socket.io.js
  3. +2 −2 dist/socket.io.min.js
  4. +1 −1 lib/io.js
  5. +3 −3 package.json
View
@@ -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
==================
View
@@ -1,4 +1,4 @@
-/*! Socket.IO.js build:0.9.9, development. Copyright(c) 2011 LearnBoost <dev@learnboost.com> MIT Licensed */
+/*! Socket.IO.js build:0.9.10, development. Copyright(c) 2011 LearnBoost <dev@learnboost.com> MIT Licensed */
var io = ('undefined' === typeof module ? {} : module.exports);
(function() {
@@ -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.
@@ -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 <dev@learnboost.com>
@@ -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;
@@ -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
@@ -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;
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -21,7 +21,7 @@
* @api public
*/
- io.version = '0.9.9';
+ io.version = '0.9.10';
/**
* Protocol implemented.
View
@@ -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"
@@ -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.