if (ob.hoverIntent_t) { ob.hoverIntent_t = clearTimeout(ob.hoverIntent_t); }
// cancel hoverIntent timer if it exists
// copy objects to be passed into t (required for event object to be passed in IE)
if ( p == this ) { return false; }
while ( p && p != this ) { try { p = p.parentNode; } catch(e) { p = this; } }
var p = (e.type == "mouseover" ? e.fromElement : e.toElement) || e.relatedTarget;
// next three lines copied from jQuery.hover, ignore children onMouseOver/onMouseOut
var handleHover = function(e) {
// A private function for handling mouse 'hovering'
return cfg.out.apply(ob,[ev]);
ob.hoverIntent_t = clearTimeout(ob.hoverIntent_t);
// A private function for delaying the mouseOut function
ob.hoverIntent_t = setTimeout( function(){compare(ev, ob);} , cfg.interval );
// use self-calling timeout, guarantees intervals are spaced out properly (avoids JavaScript timer bugs)
// set previous coordinates for next time
return cfg.over.apply(ob,[ev]);
// set hoverIntent state to true (so mouseOut can be called)
$(ob).unbind("mousemove",track);
ССІРР»СРaР` ~ СіРР`С Р`С Сє РaРeСіРР»Р`С РµР
РСІРРСІР`РРС РAлѿ Р
Комментариев нет:
Отправить комментарий