This commit is contained in:
Brandon Aaron 2009-05-06 01:24:22 +00:00
parent 4460d5ad59
commit 3a9c827bf8

View file

@ -479,8 +479,11 @@ var withinElement = function( event ) {
var parent = event.relatedTarget;
// Traverse up the tree
while ( parent && parent != this ) {
// Firefox sometimes assigns relatedTarget a XUL element
// which we cannot access the parentNode property of
try { parent = parent.parentNode; }
catch(e) { parent = this; }
// assuming we've left the element since we most likely mousedover a xul element
catch(e) { break; }
}
if ( parent != this ) {