Bug Tracker

Modify

Ticket #3996 (closed bug: wontfix)

Opened 4 years ago

Last modified 4 years ago

Live events and triggerHandler()

Reported by: JuniorZ Owned by:
Priority: major Milestone: 1.3.2
Component: event Version: 1.3.1
Keywords: Cc:
Blocking: Blocked by:

Description

It seems triggerHandler() doesn't trigger live events as expected.

A test case is attached, and more info can be found here ( http://groups.google.com/group/jquery-dev/browse_thread/thread/a44a2a9d63a42055?hl=en)

Attachments

test-bug-triggerHandler.html Download (1.4 KB) - added by JuniorZ 4 years ago.

Change History

Changed 4 years ago by JuniorZ

comment:1 Changed 4 years ago by dmethvin

The docs say: "This particular method triggers all bound event handlers on an element (for a specific event type) WITHOUT executing the browser's default actions nor bubbling."

 http://docs.jquery.com/Events/triggerHandler#eventdata

Isn't bubbling needed for .live() to work?

I was never quite sure of the design goals or use cases for .triggerHandler() though. The limit of triggering only for the first element in the jQuery object is unusual as well.

comment:2 Changed 4 years ago by john

  • Status changed from new to closed
  • Resolution set to wontfix
  • Component changed from unfilled to event

Yeah, Dave makes a good point - I'm going to mark this up as being by design.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.