0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-27 22:49:56 -05:00
ghost/core/server/lib/common/events.js

16 lines
363 B
JavaScript
Raw Normal View History

const events = require('events');
const util = require('util');
let EventRegistry;
let EventRegistryInstance;
2016-04-09 19:20:56 -05:00
EventRegistry = function () {
events.EventEmitter.call(this);
};
util.inherits(EventRegistry, events.EventEmitter);
EventRegistryInstance = new EventRegistry();
EventRegistryInstance.setMaxListeners(100);
module.exports = EventRegistryInstance;