Skip to content
Permalink
Browse files

Make sure that mousing over Chrome "internal div" elements results in…

… no trigger of a mouseleave. Fixes #8209.
  • Loading branch information
jitter committed Feb 8, 2011
1 parent 534dbd6 commit 4a828c93d40eb67b2041b08bbed0f1973442bd03
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/event.js
@@ -652,13 +652,15 @@ var withinElement = function( event ) {

// Firefox sometimes assigns relatedTarget a XUL element
// which we cannot access the parentNode property of
// Chrome does something similar, the parentNode property
// can be accessed but is null.
try {
// Traverse up the tree
while ( parent && parent !== this ) {
parent = parent.parentNode;
}

if ( parent !== this ) {
if ( parent && parent !== this ) {
// set the correct event type
event.type = event.data;

0 comments on commit 4a828c9

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