]> source.dussan.org Git - jquery.git/commitdiff
Make sure that the correct type is set for live mouseenter/mouseleave events. Fixes...
authorjeresig <jeresig@gmail.com>
Fri, 26 Feb 2010 16:23:49 +0000 (11:23 -0500)
committerjeresig <jeresig@gmail.com>
Fri, 26 Feb 2010 16:23:49 +0000 (11:23 -0500)
src/event.js

index db08bc093fed271f434d0fe3b5886af8ddbe8012..1e2d33dd61f607b991fce55df4dc6c687969267e 100644 (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];
                                }