mootools/mootools-core — pull request #2467 by luisateixeira (2013-02-04 12:14:31+00:00)
Title: Fix delegation issue introduced in 1.4.2, #2367. 

In 1.4.2 mootools uses native `mouseenter` and `mouseleave` if available. Though, those can not be used in delegation because they don't bubble.

The problem lies in:
```js
var elementEvent = Element.Events[_type];
if (elementEvent && elementEvent.condition){
var __match = match, condition = elementEvent.condition;
match = function(target, event){
return __match(target, event) && condition.call(target, event, type);
};
}
```

The `type` variable was being correctly translated from `mouseenter` to `mouseover` and `mouseleave` to `mouseou`. When mootools was using the native version, `Element.Events[_type]` was not being set, causing the `if` condition to be always false.

This PR proposes a fix for this, feel free to suggestion modifications to the code in order to get merged. This problem was causing us to use `1.4.1` in a project for too long.