ractivejs/ractive — pull request #1117 by martypdx (2014-08-15 02:21:27+00:00)
Title: Bubble events on fire

Start of event bubbling very simple implementation. Component events propagate under `component.eventName`. Test sums it up:

```js
Component = Ractive.extend({
template: 'click me'
});

Middle = Ractive.extend({
template: ''
});

ractive = new Ractive({
el: fixture,
template: '',
components: {
component: Component,
middle: Middle
}
});

ractive.on( 'component.someEvent', function ( event ) {
t.ok( true );
t.equal( event.original.type, 'click' );
});

simulant.fire( ractive.findComponent('component').nodes.test, 'click' );
```

There's a second commented out test for events declared by parent on component. Need some more thought on what should happen with these.

Also no consideration for additional context beyond original event.