Skip to content

Commit

Permalink
Fixed inheritance
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Sep 26, 2010
1 parent 82ddc07 commit 6f251a3
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions lib/log.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,6 @@ var Log = exports = module.exports = function Log(level, stream){
if (stream.readable) this.read();
};

/**
* Inherit from `EventEmitter`.
*/

Log.prototype.__proto__ = EventEmitter.prototype;

/**
* System is unusable.
*
Expand Down Expand Up @@ -121,7 +115,7 @@ Log.prototype = {
, levelString: captures[2]
, msg: captures[3]
};
self.emit('line', line);
self.emit('line', obj);
});
});
},
Expand Down Expand Up @@ -232,4 +226,10 @@ Log.prototype = {
debug: function(msg){
this.log('DEBUG', msg);
}
};
};

/**
* Inherit from `EventEmitter`.
*/

Log.prototype.__proto__ = EventEmitter.prototype;

0 comments on commit 6f251a3

Please sign in to comment.