Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

maxListeners parameter not respected in constructor #61

Closed
heneryville opened this Issue · 1 comment

3 participants

@heneryville

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;
      }
    }
  }
@ericelliott

This should be closed, now. =)

@hij1nx hij1nx closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.