Bug Tracker

Modify

Ticket #4598 (closed enhancement: worksforme)

Opened 4 years ago

Last modified 2 years ago

Adding capture to allow better event delegation

Reported by: justinbmeyer Owned by:
Priority: low Milestone:
Component: event Version: 1.3.2
Keywords: Event Delegation Cc:
Blocking: Blocked by:

Description

in event.js line 10

from

add: function(elem, types, handler, data) {

to

add: function(elem, types, handler, data, capture) {

AND line 73 from

elem.addEventListener(type, handle, false);

to

elem.addEventListener(type, handle, capture
false);

this is needed for blur / focus (which do not bubble) to work.

Change History

comment:1 Changed 3 years ago by dmethvin

  • Component changed from unfiled to event

comment:2 Changed 3 years ago by dmethvin

#5263 is a duplicate of this ticket.

comment:3 Changed 3 years ago by SlexAxton

  • Priority changed from minor to low
  • Status changed from new to open
  • Milestone changed from 1.4 to 1.5

Thanks Justin. Seems reasonable.

comment:4 Changed 2 years ago by john

  • Status changed from open to closed
  • Resolution set to worksforme

I don't think this is needed anymore.

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.