Skip to content
Permalink
Browse files

Revert "Make sure that mousing over Chrome "internal div" elements re…

…sults in no trigger of a mouseleave."

This reverts commit 4a828c9.
  • Loading branch information
jitter committed Feb 8, 2011
1 parent 4a828c9 commit 944e0e6498396bb1add67b9b0d0b13dc465d393b
Showing with 1 addition and 3 deletions.
  1. +1 −3 src/event.js
@@ -652,15 +652,13 @@ 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 && parent !== this ) {
if ( parent !== this ) {
// set the correct event type
event.type = event.data;

0 comments on commit 944e0e6

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