From: Richard D. Worth Date: Fri, 11 Nov 2011 14:24:55 +0000 (-0500) Subject: Demos accordion hoverintent: moved event.type setter to not clobber event.type. Parti... X-Git-Tag: 1.8.17~13 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0a6ce1f7d177163b06f5383d56e4f91af2ced951;p=jquery-ui.git 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 f0f54e38d8eab613d7ea25d698b81126e5263d83) --- diff --git a/demos/accordion/hoverintent.html b/demos/accordion/hoverintent.html index ce4703117..e39fb6d52 100644 --- a/demos/accordion/hoverintent.html +++ b/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;