Skip to content

Commit

Permalink
Make sure that the correct type is set for live mouseenter/mouseleave…
Browse files Browse the repository at this point in the history
… events. Fixes #6169.
  • Loading branch information
jeresig committed Feb 26, 2010
1 parent 26b0e91 commit 28b489b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/event.js
Expand Up @@ -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];
}

Expand Down

0 comments on commit 28b489b

Please sign in to comment.