mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
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:
parent
aa4e8ab3fb
commit
0a6ce1f7d1
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user