Skip to content

Commit f0f54e3

Browse files
committed
Demos accordion hoverintent: moved event.type setter to not clobber event.type. Partial fix for #7871 - Demo accordion hoverintent: hover instead of hoverintent behavior with jQuery 1.7.0
1 parent 1b16514 commit f0f54e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

demos/accordion/hoverintent.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
$( this ).unbind( "mouseover", jQuery.event.special.hoverintent.handler );
3030
},
3131
handler: function( event ) {
32-
event.type = "hoverintent";
3332
var self = this,
3433
args = arguments,
3534
target = $( event.target ),
@@ -50,6 +49,7 @@
5049
function handler() {
5150
if ( ( Math.abs( pX - cX ) + Math.abs( pY - cY ) ) < cfg.sensitivity ) {
5251
clear();
52+
event.type = "hoverintent";
5353
jQuery.event.handle.apply( self, args );
5454
} else {
5555
pX = cX;

0 commit comments

Comments
 (0)