0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

Merge pull request #5929 from ErisDS/issue-5373-emitters

Set a higher maxListeners value
This commit is contained in:
Sebastian Gierlinger 2015-10-11 18:24:23 +02:00
commit 69e93eb5cb

View file

@ -1,9 +1,12 @@
var events = require('events'),
util = require('util'),
EventRegistry;
EventRegistry,
EventRegistryInstance;
EventRegistry = function () {};
util.inherits(EventRegistry, events.EventEmitter);
module.exports = new EventRegistry();
EventRegistryInstance = new EventRegistry();
EventRegistryInstance.setMaxListeners(100);
module.exports = EventRegistryInstance;