Fixes #8456. Make sure parent is not null before crawling into its lap, so mouseenter is triggered on a mouseover event.

This commit is contained in:
Dave Methvin 2011-03-09 22:38:26 -05:00
parent 6c124d3dd4
commit 2ac4067a63
2 changed files with 15 additions and 1 deletions

View file

@ -661,7 +661,7 @@ var withinElement = function( event ) {
// Chrome does something similar, the parentNode property
// can be accessed but is null.
if ( parent !== document && !parent.parentNode ) {
if ( parent && parent !== document && !parent.parentNode ) {
return;
}
// Traverse up the tree