Skip to content
Permalink
Browse files

Clean up the delegate matching logic.

  • Loading branch information...
dmethvin authored and timmywil committed Aug 17, 2011
1 parent 66e9a6f commit 68d07bf648c55c39aeb5b3abc634c58087b19fd8
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/event.js
@@ -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 );

0 comments on commit 68d07bf

Please sign in to comment.
You can’t perform that action at this time.