Opened 12 years ago
Closed 12 years ago
#8416 closed defect (wontfix)
NodeList: synthetic sugar events triggering
Reported by: | dante | Owned by: | James Burke |
---|---|---|---|
Priority: | high | Milestone: | tbd |
Component: | General | Version: | 1.2.3 |
Keywords: | Cc: | Eugene Lazutkin, James Burke | |
Blocked By: | Blocking: |
Description
In NodeList.js, there is commented code about possibly making the synthetic events mapped from the list (mentioned in #8415) trigger the events if called without a passed function. eg:
dojo.query(".links").onclick(function(e){ ... }); dojo.query(".links").onclick(); // trigger attached functions
Not sure if there is a technical reason behind this omission, or if it was just overlooked, but seems like a great feature to have.
Note: See
TracTickets for help on using
tickets.
we can't dig up the attached event without doing insane things like adding unique id's to all nodes that pass through query().