hij1nx/EventEmitter2 — Issue #50: emit() returns true when it should return false
Author: pwellner
Created: 2012-02-02 22:08:02+00:00
State: open

In the following test emit() should return false

var EventEmitter = require('eventemitter2').EventEmitter2;
var ee = new EventEmitter({wildcard: true});

ee.on("foo", function() {
console.log("handled");
});

console.log("emit returned " + ee.emit("bar"));

This can be fixed by changing line 312 of `eventemitter2.js` to `return listeners.length > 0;`