mirror of
https://github.com/jquery/jquery.git
synced 2025-01-10 18:24:24 +00:00
Added fix for bug #222
This commit is contained in:
parent
7654d3b833
commit
644256759f
@ -80,7 +80,7 @@ jQuery.fn.extend({
|
|||||||
var p = (e.type == "mouseover" ? e.fromElement : e.toElement) || e.relatedTarget;
|
var p = (e.type == "mouseover" ? e.fromElement : e.toElement) || e.relatedTarget;
|
||||||
|
|
||||||
// Traverse up the tree
|
// Traverse up the tree
|
||||||
while ( p && p != this ) p = p.parentNode;
|
while ( p && p != this ) try { p = p.parentNode } catch(e) { p = null; };
|
||||||
|
|
||||||
// If we actually just moused on to a sub-element, ignore it
|
// If we actually just moused on to a sub-element, ignore it
|
||||||
if ( p == this ) return false;
|
if ( p == this ) return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user