hij1nx/EventEmitter2 — Issue #47: newListener event doesn't fire if wildcard option is true
Author: neocoder
Created: 2012-01-19 13:13:26+00:00
State: open

If wildcard option is set to true a newListener event doesn't fire.

Here's a test:

```javascript
var EventEmitter2 = require('../lib/node_modules/eventemitter2').EventEmitter2;

var x = new EventEmitter2({ wildcard: false });
x.on('newListener', function(){
console.log('this line appears');
});
x.on('test', function(){ });

var y = new EventEmitter2({ wildcard: true });
y.on('newListener', function(){
console.log('this line should appear too, but it\'s not');
});
y.on('test', function(){ });
```