YuzuJS/pubit-as-promised — pull request #5 by donavon (2014-12-13 17:07:00+00:00)
Title: Add wildcard and RegExp support.

You can now do this (sweet!):

```javascript
function logger(eventName) {
console.log("event = %s", event);
}

thingie.onWild("*", logger); // Log everything.

thingie.onWild("ui.*", logger); // Log anything starting with "ui."

// Log anything starting with "ui.reader." or "ui.logger."
thingie.onWild(/^ui\.(reader|details)\./, logger);
```

Right now, there is no `offWild` (another PR?), so to unsubscribe, simply call the unsubscribe function returned by `olWild`.

Example:

```javascript
var unsubscribe = thingie.onWild("*", logger); // Log everything.

// Later, when you want to stop listening:
unsubscribe();
````