Ticket #7216: 7216.patch
| File 7216.patch, 0.8 kB (added by doughays, 6 months ago) |
|---|
-
_base/event.js
16 16 //oname = name; 17 17 name = (name == "mouseenter") ? "mouseover" : "mouseout"; 18 18 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; } 20 24 if(!dojo.isDescendant(e.relatedTarget, node)){ 21 25 // e.type = oname; // FIXME: doesn't take? SJM: event.type is generally immutable. 22 26 return ofp.call(this, e);