Permalink
Browse files

Restorted _checkSend (accidentally removed)

  • Loading branch information...
1 parent 6f6ae2e commit 40e06d2f738b8ff41b7f7f575547f82145767e79 @rauchg rauchg committed Aug 1, 2010
Showing with 8 additions and 0 deletions.
  1. +8 −0 lib/transports/xhr.js
View
@@ -39,6 +39,14 @@
return this;
};
+ XHR.prototype._checkSend = function(){
+ if (!this._posting && this._sendBuffer.length){
+ var encoded = this._encode(this._sendBuffer);
+ this._sendBuffer = [];
+ this._send(encoded);
+ }
+ };
+
XHR.prototype.send = function(data){
if (io.util.isArray(data)){
this._sendBuffer.push.apply(this._sendBuffer, data);

0 comments on commit 40e06d2

Please sign in to comment.