Simplify the code detect mouseenter/leave event #364

Closed
wants to merge 1 commit into
from

Projects

None yet

2 participants

@cmc3cn
cmc3cn commented Apr 29, 2011

The original commit:
a9b81d7

which Fixes #5884, but the code is redundant.

if jQuery.contains( elem, related ) then 'related' can't push in the "elems" that fire live mouseenter/leave event. and the variable "related " is not used.

so just " && !jQuery.contains( elem, related ) "

@timmywil
Member

The contains call is only necessary for mouseenter/mouseleave events.

@timmywil timmywil closed this Jun 14, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment