mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-15 19:52:01 +03:00
b943948d24
fixes #5373 - Set Max Listeners on our Event Emitter to 100 - Stops the '11 listeners added' error on node 0.12 during tests
13 lines
325 B
JavaScript
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;
|