Skip to main content

Bug Tracker

Side navigation

#5576 closed bug (invalid)

Opened December 01, 2009 03:42PM UTC

Closed December 01, 2009 10:03PM UTC

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:
Blocked by: Blocking:
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

Attachments (0)
Change History (1)

Changed December 01, 2009 10:03PM UTC by dmethvin comment:1

resolution: → invalid
status: newclosed

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."