Commit 4e8e6418 authored by Arnout Kazemier's avatar Arnout Kazemier

Merge pull request #180 from CrabDude/master

Use util.inherits instead of IssueLog.prototype = new EventEmitter
parents fa825e00 2a1cf28a
......@@ -2,7 +2,8 @@
var EventEmitter = require('events').EventEmitter
, spawn = require('child_process').spawn
, Utils = require('./utils');
, Utils = require('./utils')
, util = require('util');
exports.IssueLog = IssueLog; // connection issue handling
exports.Available = ping; // connection availablity
......@@ -37,7 +38,8 @@ function IssueLog (args) {
EventEmitter.call(this);
}
var issues = IssueLog.prototype = new EventEmitter;
util.inherits(IssueLog, EventEmitter);
var issues = IssueLog.prototype;
issues.log = function log (message) {
var issue = this;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment