maxListeners parameter not respected in constructor #61

heneryville opened this Issue Jul 17, 2012 · 1 comment


None yet

3 participants


While you can use setMaxListeners to change the maximum number of listeners, the same constructor parameter is ignored. The API documentation shows that we should be able to do

    var server = new EventEmitter2({
      maxListeners: 20

But the configure function does nothing with it

function configure(conf) {
    if (conf) {
      conf.delimiter && (this.delimiter = conf.delimiter);
      conf.wildcard && (this.wildcard = conf.wildcard);
      if (this.wildcard) {
        this.listenerTree = new Object;

This should be closed, now. =)

@0x00A 0x00A closed this Nov 6, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment