Opened 6 years ago

Last modified 2 years ago

#16406 new defect

dojo/on fails on delegated objects

Reported by: Peter Jekel Owned by: Kris Zyp
Priority: undecided Milestone: 1.15
Component: Events Version: 1.8.1
Keywords: Cc:
Blocked By: Blocking:

Description

Event listeners on a delegated object don't get notified when the parent object fires an event. However, the other way around is true, that is, when the delegated object fires an event any listeners on the parent object DO get notified.

I have included one sample 'onProblem.html' which demonstrates the problem and one potential fix: 'onFix.zip' . The onFix.zip is not a simple fix for 'dojo/on' instead it uses a standalone fully compliant DOM4 event handling system I wrote for my indexedDB implementation: https://github.com/pjekel/indexedDB

In support of ticket #16318 I would like to submit the included DOM4 event handling system for your consideration as the potential new foundation for dojo/on and dojo/Evented.

Attachments (2)

onProblem.html (1.7 KB) - added by Peter Jekel 6 years ago.
Demonstate the dojo/on issue
onFix.zip (13.1 KB) - added by Peter Jekel 6 years ago.
Potentail fix for dojo/on and dojo/Evented

Download all attachments as: .zip

Change History (4)

Changed 6 years ago by Peter Jekel

Attachment: onProblem.html added

Demonstate the dojo/on issue

Changed 6 years ago by Peter Jekel

Attachment: onFix.zip added

Potentail fix for dojo/on and dojo/Evented

comment:1 Changed 3 years ago by dylan

Milestone: tbd1.12

Will consider for 1.12. peterj, I assume you have a CLA on file per our contributing guidelines? https://github.com/dojo/dojo/blob/master/CONTRIBUTING.md Any chance you want to create a pull request for your patch?

comment:2 Changed 2 years ago by dylan

Milestone: 1.131.15

Ticket planning... move current 1.13 tickets out to 1.15 to make it easier to move tickets into the 1.13 milestone.

Note: See TracTickets for help on using tickets.