Skip to content
This repository has been archived by the owner on Aug 19, 2019. It is now read-only.

Commit

Permalink
Merge pull request #12 from bigdatr/feature/event-undefined-bugs
Browse files Browse the repository at this point in the history
move the eventEmitter.call inside the class function
  • Loading branch information
allanhortle committed Aug 31, 2016
2 parents 8a059cd + 989a2d8 commit d0eef47
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/Service.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
'user strict';
'use strict';

var util = require("util"),
events = require("events");

function Service() {}
function Service() {
events.EventEmitter.call(this);
}

events.EventEmitter.call(this);

util.inherits(Service, events.EventEmitter);

Expand Down

0 comments on commit d0eef47

Please sign in to comment.