Ticket #7216: 7216.patch

File 7216.patch, 0.8 kB (added by doughays, 6 months ago)

patch to event.js

  • _base/event.js

     
    1616                                //oname = name; 
    1717                                name = (name == "mouseenter") ? "mouseover" : "mouseout"; 
    1818                                fp = function(e){ 
    19                                         // thanks ben! 
     19                                        // check tagName to fix a FF2 bug with invalid nodes (hidden child DIV of INPUT) 
     20                                        // which causes isDecendant to return false which causes 
     21                                        // spurious, and more importantly, incorrect mouse events to fire. 
     22                                        // TODO: remove tagName check when Firefox 2 is no longer supported 
     23                                        try{ e.relatedTarget.tagName; } catch(e2){ return; } 
    2024                                        if(!dojo.isDescendant(e.relatedTarget, node)){ 
    2125                                                // e.type = oname; // FIXME: doesn't take? SJM: event.type is generally immutable. 
    2226                                                return ofp.call(this, e);