Make sure that the correct type is set for live mouseenter/mouseleave events. Fixes #6169.

This commit is contained in:
jeresig 2010-02-26 11:23:49 -05:00
parent 26b0e913dd
commit 28b489bfc8

View file

@ -1022,6 +1022,7 @@ function liveHandler( event ) {
// Those two events require additional checking
if ( handleObj.preType === "mouseenter" || handleObj.preType === "mouseleave" ) {
event.type = handleObj.preType;
related = jQuery( event.relatedTarget ).closest( handleObj.selector )[0];
}