mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Revert "Make sure that mousing over Chrome "internal div" elements results in no trigger of a mouseleave."
This reverts commit 4a828c93d4
.
This commit is contained in:
parent
4a828c93d4
commit
944e0e6498
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user