Modify ↓
Ticket #5576 (closed bug: invalid)
Live event listener fails on first event type
| Reported by: | matas | Owned by: | brandon |
|---|---|---|---|
| Priority: | major | Milestone: | 1.4 |
| Component: | event | Version: | 1.3.2 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
The first event type in the multiple event definition like 'onFirst' here:
$(document).live('onFirst onSecond onThird', function(event) {
alert('Live: multi event type worked:' + event.type);
});
will never be called.
the 'bind' version will work as expected:
$(document).bind('onFirst onSecond onThird', function(event) {
alert('Bind: multi event type worked:' + event.type);
});
a working example: http://jsbin.com/elenu
reproducable in FF in Safari
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

You are trying something that is not supported:
http://docs.jquery.com/Events/live#typefn
"Unlike .bind(), only a single event can be bound in each call to the .live() method."