mootools/mootools-core — Issue #2200: Custom event type
Author: bastianschilbe
Created: 2012-01-14 11:51:10+00:00
State: open

The event type of the event object in the callback function of an custom event is the same as the base event it extends.
e.g.
```Element.Events.example = {base:'keyup'};
$(el).addEvent('example', function(event){
event.type // I expected 'example' but it's 'keyup'
});
```
Is this behaviour by design and why?