Skip to content

Commit

Permalink
Revert "Make sure that mousing over Chrome "internal div" elements re…
Browse files Browse the repository at this point in the history
…sults in no trigger of a mouseleave."

This reverts commit 4a828c9.
  • Loading branch information
jitter committed Feb 8, 2011
1 parent 4a828c9 commit 944e0e6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/event.js
Expand Up @@ -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;

Expand Down

0 comments on commit 944e0e6

Please sign in to comment.