style change and lint

fork
Brian White 10 years ago
parent 6cdb81bd29
commit 26aede8408

@ -66,13 +66,13 @@ function Connection(config) {
this._sock = undefined; this._sock = undefined;
this._tagcount = 0; this._tagcount = 0;
this._tmrConn = undefined; this._tmrConn = undefined;
this._tmrKeepalive = undefined;
this._tmrAuth = undefined; this._tmrAuth = undefined;
this._queue = []; this._queue = [];
this._box = undefined; this._box = undefined;
this._idle = {}; this._idle = {};
this._parser = undefined; this._parser = undefined;
this._curReq = undefined; this._curReq = undefined;
this._ending = false;
this.delimiter = undefined; this.delimiter = undefined;
this.namespaces = undefined; this.namespaces = undefined;
this.state = 'disconnected'; this.state = 'disconnected';
@ -89,13 +89,13 @@ Connection.prototype.connect = function() {
this._sock = undefined; this._sock = undefined;
this._tagcount = 0; this._tagcount = 0;
this._tmrConn = undefined; this._tmrConn = undefined;
this._tmrKeepalive = undefined;
this._tmrAuth = undefined; this._tmrAuth = undefined;
this._queue = []; this._queue = [];
this._box = undefined; this._box = undefined;
this._idle = {}; this._idle = {};
this._parser = undefined; this._parser = undefined;
this._curReq = undefined; this._curReq = undefined;
this._ending = false;
this.delimiter = undefined; this.delimiter = undefined;
this.namespaces = undefined; this.namespaces = undefined;
this.state = 'disconnected'; this.state = 'disconnected';

@ -58,9 +58,8 @@ function Parser(stream, debug) {
inherits(Parser, EventEmitter); inherits(Parser, EventEmitter);
Parser.prototype.setStream = function(stream) { Parser.prototype.setStream = function(stream) {
if (this._stream) { if (this._stream)
this._stream.removeListener('readable', this._cbReadable); this._stream.removeListener('readable', this._cbReadable);
}
if (/^v0\.8\./.test(process.version)) { if (/^v0\.8\./.test(process.version)) {
this._stream = (new ReadableStream()).wrap(stream); this._stream = (new ReadableStream()).wrap(stream);

Loading…
Cancel
Save