Modify ↓
Ticket #4598 (closed enhancement: worksforme)
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
| false); |
this is needed for blur / focus (which do not bubble) to work.
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.
