Skip to content
Permalink
Browse files

Demos accordion hoverintent: moved event.type setter to not clobber e…

…vent.type. Partial fix for #7871 - Demo accordion hoverintent: hover instead of hoverintent behavior with jQuery 1.7.0
  • Loading branch information...
rdworth committed Nov 11, 2011
1 parent 1b16514 commit f0f54e38d8eab613d7ea25d698b81126e5263d83
Showing with 1 addition and 1 deletion.
  1. +1 −1 demos/accordion/hoverintent.html
@@ -29,7 +29,6 @@
$( this ).unbind( "mouseover", jQuery.event.special.hoverintent.handler );
},
handler: function( event ) {
event.type = "hoverintent";
var self = this,
args = arguments,
target = $( event.target ),
@@ -50,6 +49,7 @@
function handler() {
if ( ( Math.abs( pX - cX ) + Math.abs( pY - cY ) ) < cfg.sensitivity ) {
clear();
event.type = "hoverintent";
jQuery.event.handle.apply( self, args );
} else {
pX = cX;

0 comments on commit f0f54e3

Please sign in to comment.
You can’t perform that action at this time.