addyosmani/aura — pull request #133 by rumpl (2012-10-08 06:08:29+00:00)
Title: Namespaces and wildcard pubsub

Here it is.

This is not ready for merge right now. The `core.on` method needs polishing and there is no subscriber cleanup in the `core.stop` method.

I used underscore here and there, tell me if that's ok with you guys.

So, what we have here is :
- support for namespaces : `core.on('some.random.event', ...)`
- support for wildcards : `core.on('*', ...);` or `core.on('some.random.*');`
- The `emit` method defers the callbacks so we don't have the problem of an [infinite loop](https://github.com/addyosmani/aura/pull/120)
- working unit tests
- all the callback methods get the event as first parameter (useful when subscribing with a wildcard)

If you think this is any good I'll try to finish the remaining parts (cleanup and a working `stop` method) as soon as possible.

Many a commits here, I guess I'll have to squash them :)