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

(cherry picked from commit f0f54e3)
  • Loading branch information...
1 parent aa4e8ab commit 0a6ce1f7d177163b06f5383d56e4f91af2ced951 @rdworth rdworth committed Nov 11, 2011
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 0a6ce1f

Please sign in to comment.