From: jeresig Date: Fri, 26 Feb 2010 16:23:49 +0000 (-0500) Subject: Make sure that the correct type is set for live mouseenter/mouseleave events. Fixes... X-Git-Tag: 1.4.3rc1~201 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=28b489bfc8ad240b01e63ed93634f2b8770332a3;p=jquery.git Make sure that the correct type is set for live mouseenter/mouseleave events. Fixes #6169. --- diff --git a/src/event.js b/src/event.js index db08bc093..1e2d33dd6 100644 --- a/src/event.js +++ b/src/event.js @@ -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]; }