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

(cherry picked from commit f0f54e38d8)
This commit is contained in:
Richard D. Worth 2011-11-11 09:24:55 -05:00
parent aa4e8ab3fb
commit 0a6ce1f7d1

View File

@ -29,7 +29,6 @@
$( this ).unbind( "mouseover", jQuery.event.special.hoverintent.handler ); $( this ).unbind( "mouseover", jQuery.event.special.hoverintent.handler );
}, },
handler: function( event ) { handler: function( event ) {
event.type = "hoverintent";
var self = this, var self = this,
args = arguments, args = arguments,
target = $( event.target ), target = $( event.target ),
@ -50,6 +49,7 @@
function handler() { function handler() {
if ( ( Math.abs( pX - cX ) + Math.abs( pY - cY ) ) < cfg.sensitivity ) { if ( ( Math.abs( pX - cX ) + Math.abs( pY - cY ) ) < cfg.sensitivity ) {
clear(); clear();
event.type = "hoverintent";
jQuery.event.handle.apply( self, args ); jQuery.event.handle.apply( self, args );
} else { } else {
pX = cX; pX = cX;