From 28b489bfc8ad240b01e63ed93634f2b8770332a3 Mon Sep 17 00:00:00 2001 From: jeresig Date: Fri, 26 Feb 2010 11:23:49 -0500 Subject: [PATCH] Make sure that the correct type is set for live mouseenter/mouseleave events. Fixes #6169. --- src/event.js | 1 + 1 file changed, 1 insertion(+) 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]; } -- 2.39.5