-
- // workaround for Mozilla bug: not firing mouseout/mouseleave on absolute positioned elements over textareas and input type="text"
- var handleHover = function(e) {
- var t = this;
-
- // next two lines copied from jQuery.hover, ignore children onMouseOver/onMouseOut
- var p = (e.type == "mouseover" ? e.fromElement : e.toElement) || e.relatedTarget;
- while ( p && p != this ) { try { p = p.parentNode; } catch(e) { p = this; } }
- if ( p == this ) {
- if ( $.browser.mozilla ) {
- if ( e.type == "mouseout" ) {
- t.mtout = setTimeout( function(){doHover(e,t);}, 30 );
- } else {
- if (t.mtout) { t.mtout = clearTimeout(t.mtout); }
- }
- }
- return;
- } else {
- if (t.mtout) { t.mtout = clearTimeout(t.mtout); }
- doHover(e,t);
- }
- };