hij1nx/EventEmitter2 — pull request #102 by atesgoral (2013-10-30 03:46:22+00:00)
Title: .collect() for collecting responses from event handlers

This can be useful when using EventEmitter2 as a service locator where a component agnostically collects services/data from an unknown number of service/data providers.

For instance:

```
var results = emitter.collect("plugin", { profile: "default" });
```
`results` is an Array that contains a list of plugins (plugin event listeners that return plugin instances) that match the "default" profile.