Bug Tracker

Ticket #5576 (closed bug: invalid)

Opened 5 years ago

Last modified 5 years ago

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

comment:1 Changed 5 years ago by dmethvin

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

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.