Commit 944e0e64 authored by Anton M's avatar Anton M

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

Revert "Make sure that mousing over Chrome "internal div" elements results in no trigger of a mouseleave."

This reverts commit 4a828c93.
parent 4a828c93
...@@ -652,15 +652,13 @@ var withinElement = function( event ) { ...@@ -652,15 +652,13 @@ var withinElement = function( event ) {
// Firefox sometimes assigns relatedTarget a XUL element // Firefox sometimes assigns relatedTarget a XUL element
// which we cannot access the parentNode property of // which we cannot access the parentNode property of
// Chrome does something similar, the parentNode property
// can be accessed but is null.
try { try {
// Traverse up the tree // Traverse up the tree
while ( parent && parent !== this ) { while ( parent && parent !== this ) {
parent = parent.parentNode; parent = parent.parentNode;
} }
if ( parent && parent !== this ) { if ( parent !== this ) {
// set the correct event type // set the correct event type
event.type = event.data; event.type = event.data;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment