Fix js-hint error

This commit is contained in:
Brian Carlson 2013-08-17 17:33:27 -05:00
parent c98125b065
commit beeae35291

View File

@ -89,12 +89,13 @@ Connection.prototype.connect = function(port, host) {
Connection.prototype.attachListeners = function(stream) {
stream.on('data', function(buff) {
this.setBuffer(buff);
var msg;
while(msg = this.parseMessage()) {
var msg = this.parseMessage();
while(msg) {
if(this._emitMessage) {
this.emit('message', msg);
}
this.emit(msg.name, msg);
msg = this.parseMessage();
}
}.bind(this));
};