component/emitter — pull request #9 by eldargab (2012-10-07 12:11:00+00:00)
Title: Inherit  subscriptions from prototype?

So that emitter becomes a real mixin, doesn't require `Emitter.call(this)` and doesn't force you to pollute constructors with unnecessary subscription job.

``` javascript
function SuperDialog () {}

SuperDialog.prototype = new Dialog

SuperDialog.prototype.on('show', function () {
// do super thing
})

// SuperDialog is a good mixin
new SuperDialog // fast
```