Bug Tracker

Opened 7 years ago

Closed 7 years ago

#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:
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

Change History (1)

comment:1 Changed 7 years ago by dmethvin

  • Resolution set to invalid
  • Status changed from new to closed

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

Note: See TracTickets for help on using tickets.