0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

Merge pull request #6695 from jaswilli/emitter

Make sure events gets initialized
This commit is contained in:
Hannah Wolfe 2016-04-10 17:56:38 +01:00
commit 0fd5cea07d

View file

@ -3,7 +3,9 @@ var events = require('events'),
EventRegistry,
EventRegistryInstance;
EventRegistry = function () {};
EventRegistry = function () {
events.EventEmitter.call(this);
};
util.inherits(EventRegistry, events.EventEmitter);
EventRegistryInstance = new EventRegistry();