aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjeresig <jeresig@gmail.com>2010-02-26 11:23:49 -0500
committerjeresig <jeresig@gmail.com>2010-02-26 11:23:49 -0500
commit28b489bfc8ad240b01e63ed93634f2b8770332a3 (patch)
tree7d24c19ecab36e51d0d783f98f01c9f5e737d397
parent26b0e913dda386b6b2848196689a02a2da6aa40d (diff)
downloadjquery-28b489bfc8ad240b01e63ed93634f2b8770332a3.tar.gz
jquery-28b489bfc8ad240b01e63ed93634f2b8770332a3.zip
Make sure that the correct type is set for live mouseenter/mouseleave events. Fixes #6169.
-rw-r--r--src/event.js1
1 files changed, 1 insertions, 0 deletions
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];
}