Bug Tracker

Modify

Ticket #4986 (closed bug: fixed)

Opened 4 years ago

Last modified 4 years ago

Changes to closest (#6507) breaks $(event.target).closest(...)

Reported by: jollytoad Owned by:
Priority: undecided Milestone: 1.4
Component: core Version: 1.3.2
Keywords: Cc:
Blocking: Blocked by:

Description

The changes applied to closest() in  http://dev.jquery.com/changeset/6507 break event handlers that use this pattern:

$('.container').bind('click', function(event) {

$(event.target).closest('.clickable').doSomething();

});

Demo:  http://jsbin.com/ataxe

Change History

comment:1 Changed 4 years ago by john

  • Status changed from new to closed
  • Resolution set to fixed
  • Version set to 1.3.2
  • Component changed from unfilled to core

Backed out in SVN rev [6519].

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.