hij1nx/EventEmitter2 — pull request #55 by pwellner (2012-02-20 15:19:17+00:00)
Title: emit should return false when event not handled

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

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

assert.ok(!ee.emit("bar"), "emit should return false when event not handled");
console.log("passed");