Ghost/core/server/events/index.js
Hannah Wolfe b943948d24 Set a higher maxListeners value
fixes #5373

- Set Max Listeners on our Event Emitter to 100
- Stops the '11 listeners added' error on node 0.12 during tests
2015-10-09 19:27:49 +01:00

13 lines
325 B
JavaScript

var events = require('events'),
util = require('util'),
EventRegistry,
EventRegistryInstance;
EventRegistry = function () {};
util.inherits(EventRegistry, events.EventEmitter);
EventRegistryInstance = new EventRegistry();
EventRegistryInstance.setMaxListeners(100);
module.exports = EventRegistryInstance;