mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-21 09:52:06 +03:00
3eec28afcf
- Preparing to cleanup / change how we use events across Ghost - Removing this unused bit of additional complexity makes it easier to reason about what we need
16 lines
363 B
JavaScript
16 lines
363 B
JavaScript
const events = require('events');
|
|
const util = require('util');
|
|
let EventRegistry;
|
|
let EventRegistryInstance;
|
|
|
|
EventRegistry = function () {
|
|
events.EventEmitter.call(this);
|
|
};
|
|
|
|
util.inherits(EventRegistry, events.EventEmitter);
|
|
|
|
EventRegistryInstance = new EventRegistry();
|
|
EventRegistryInstance.setMaxListeners(100);
|
|
|
|
module.exports = EventRegistryInstance;
|