mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Clean up the delegate matching logic.
This commit is contained in:
parent
66e9a6f773
commit
68d07bf648
@ -437,8 +437,8 @@ jQuery.event = {
|
||||
if ( handleObj.isPositional ) {
|
||||
// Since .is() does not work for positionals; see http://jsfiddle.net/eJ4yd/3/
|
||||
hit = (hit || (selMatch[ sel ] = jQuery( sel ))).index( cur ) >= 0;
|
||||
} else {
|
||||
hit = hit || hit !== false && (selMatch[ sel ] = (handleObj.quick? quickIs( cur, handleObj.quick ) : jQuery( cur ).is( sel )));
|
||||
} else if ( hit === undefined ) {
|
||||
hit = selMatch[ sel ] = (handleObj.quick? quickIs( cur, handleObj.quick ) : jQuery( cur ).is( sel ));
|
||||
}
|
||||
if ( hit ) {
|
||||
matches.push( handleObj );
|
||||
|
Loading…
Reference in New Issue
Block a user