#7001 closed bug (invalid)
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
Change History (3)
comment:1 Changed 13 years ago by
comment:2 Changed 13 years ago by
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.
comment:3 Changed 13 years ago by
Priority: | → undecided |
---|---|
Resolution: | → invalid |
Status: | new → closed |
hover is not an event, it is a function.
Note: See
TracTickets for help on using
tickets.
that's right. example:
{{{<!DOCTYPE html PUBLIC "-W3CDTD XHTML 1.0 StrictEN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head>
$(".item").live('hover', function () {
</html>}}}