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:
commit
0fd5cea07d
1 changed files with 3 additions and 1 deletions
|
@ -3,7 +3,9 @@ var events = require('events'),
|
||||||
EventRegistry,
|
EventRegistry,
|
||||||
EventRegistryInstance;
|
EventRegistryInstance;
|
||||||
|
|
||||||
EventRegistry = function () {};
|
EventRegistry = function () {
|
||||||
|
events.EventEmitter.call(this);
|
||||||
|
};
|
||||||
util.inherits(EventRegistry, events.EventEmitter);
|
util.inherits(EventRegistry, events.EventEmitter);
|
||||||
|
|
||||||
EventRegistryInstance = new EventRegistry();
|
EventRegistryInstance = new EventRegistry();
|
||||||
|
|
Loading…
Add table
Reference in a new issue