Opened 11 years ago
Closed 11 years ago
#10619 closed bug (invalid)
Hover function repeats on mouseleave
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | low | Milestone: | None |
Component: | event | Version: | 1.4 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
In previous version that was good but in newest still no longer work. Hover function repeats on mouseleave. This is example: $(document).ready(function(){
$(".main-link").hover(function(){
$(this).removeClass("hovered"); $(this).addClass("hovered"); $("ul.sub-nav").hide(); $(this).siblings("ul.sub-nav").stop(false,true).fadeIn("slow");
});
});
Change History (2)
comment:1 Changed 11 years ago by
comment:2 Changed 11 years ago by
Component: | unfiled → event |
---|---|
Priority: | undecided → low |
Resolution: | → invalid |
Status: | new → closed |
So, just to be clear - that behaviour is _correct_ when you pass only one argument to .hover()
, see: http://api.jquery.com/hover/#hover2
i've fixed that...replaced hover function with mouseover, thanks