Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix missing commas
  • Loading branch information
pgherveou committed Aug 14, 2012
1 parent 7b4cb70 commit 3d791a4
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion lib/json.js
Expand Up @@ -17,7 +17,7 @@
return exports.JSON = {
parse: nativeJSON.parse
, stringify: nativeJSON.stringify
}
};
}

var JSON = exports.JSON = {};
Expand Down
12 changes: 6 additions & 6 deletions lib/transport.js
Expand Up @@ -39,7 +39,7 @@

Transport.prototype.heartbeats = function () {
return true;
}
};

/**
* Handles the response from the server. When a new response is received
Expand All @@ -52,8 +52,8 @@

Transport.prototype.onData = function (data) {
this.clearCloseTimeout();
// If the connection in currently open (or in a reopening state) reset the close

// If the connection in currently open (or in a reopening state) reset the close
// timeout since we have just received data. This check is necessary so
// that we don't reset the timeout on an explicitly disconnected connection.
if (this.socket.connected || this.socket.connecting || this.socket.reconnecting) {
Expand Down Expand Up @@ -105,7 +105,7 @@
*
* @api private
*/

Transport.prototype.setCloseTimeout = function () {
if (!this.closeTimeout) {
var self = this;
Expand Down Expand Up @@ -138,7 +138,7 @@
Transport.prototype.onConnect = function () {
this.socket.onConnect();
return this;
}
};

/**
* Clears close timeout
Expand Down Expand Up @@ -189,7 +189,7 @@
Transport.prototype.onHeartbeat = function (heartbeat) {
this.packet({ type: 'heartbeat' });
};

/**
* Called when the transport opens.
*
Expand Down
4 changes: 2 additions & 2 deletions lib/transports/jsonp-polling.js
Expand Up @@ -147,7 +147,7 @@

this.socket.setBuffer(true);
};

/**
* Creates a new JSONP poll that can be used to listen
* for messages from the Socket.IO server.
Expand All @@ -174,7 +174,7 @@
self.onClose();
};

var insertAt = document.getElementsByTagName('script')[0]
var insertAt = document.getElementsByTagName('script')[0];
insertAt.parentNode.insertBefore(script, insertAt);
this.script = script;

Expand Down
10 changes: 5 additions & 5 deletions lib/util.js
Expand Up @@ -215,7 +215,7 @@
*
* @api public
*/

util.merge = function merge (target, additional, deep, lastseen) {
var seen = lastseen || []
, depth = typeof deep == 'undefined' ? 2 : deep
Expand All @@ -240,7 +240,7 @@
*
* @api public
*/

util.mixin = function (ctor, ctor2) {
util.merge(ctor.prototype, ctor2.prototype);
};
Expand Down Expand Up @@ -288,7 +288,7 @@
}

return ret;
}
};

/**
* Array indexOf compatibility.
Expand All @@ -298,8 +298,8 @@
*/

util.indexOf = function (arr, o, i) {
for (var j = arr.length, i = i < 0 ? i + j < 0 ? 0 : i + j : i || 0;

for (var j = arr.length, i = i < 0 ? i + j < 0 ? 0 : i + j : i || 0;
i < j && arr[i] !== o; i++) {}

return j <= i ? -1 : i;
Expand Down

0 comments on commit 3d791a4

Please sign in to comment.