Side navigation
#7001 closed bug (invalid)
Opened September 04, 2010 11:38AM UTC
Closed September 23, 2010 12:22AM UTC
Last modified March 13, 2012 09:30PM UTC
live('hover') does not trigger the out handler
Reported by: | erezef | Owned by: | |
---|---|---|---|
Priority: | undecided | Milestone: | 1.4.3 |
Component: | event | Version: | 1.4.2 |
Keywords: | live, hover | Cc: | |
Blocked by: | Blocking: |
Description
Hi,
The following code does not work. It only calls the handlerIn but forget all about calling the handlerOut.
$(".page .item_list .item").live('hover', function () {
$(this).fadeTo('slow', 0.3);
}, function () {
$(this).fadeTo('slow', 1.0);
});
Thanks,
Erez
Attachments (0)
Change History (3)
Changed September 09, 2010 07:38PM UTC by comment:1
Changed September 09, 2010 07:45PM UTC by comment:2
I'm sorry, it's ok please consider this:
http://api.jquery.com/live/#multiple-events
$('.hoverme').live('mouseover mouseout', function(event) { if (event.type == 'mouseover') { // do something on mouseover } else { // do something on mouseout } });
ticket can be closed.
Changed September 23, 2010 12:22AM UTC by comment:3
priority: | → undecided |
---|---|
resolution: | → invalid |
status: | new → closed |
hover is not an event, it is a function.
that's right.
example: