Commit 68d07bf6 authored by Dave Methvin's avatar Dave Methvin Committed by timmywil

Clean up the delegate matching logic.

parent 66e9a6f7
...@@ -437,8 +437,8 @@ jQuery.event = { ...@@ -437,8 +437,8 @@ jQuery.event = {
if ( handleObj.isPositional ) { if ( handleObj.isPositional ) {
// Since .is() does not work for positionals; see http://jsfiddle.net/eJ4yd/3/ // Since .is() does not work for positionals; see http://jsfiddle.net/eJ4yd/3/
hit = (hit || (selMatch[ sel ] = jQuery( sel ))).index( cur ) >= 0; hit = (hit || (selMatch[ sel ] = jQuery( sel ))).index( cur ) >= 0;
} else { } else if ( hit === undefined ) {
hit = hit || hit !== false && (selMatch[ sel ] = (handleObj.quick? quickIs( cur, handleObj.quick ) : jQuery( cur ).is( sel ))); hit = selMatch[ sel ] = (handleObj.quick? quickIs( cur, handleObj.quick ) : jQuery( cur ).is( sel ));
} }
if ( hit ) { if ( hit ) {
matches.push( handleObj ); matches.push( handleObj );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment