Opened 13 years ago

Closed 13 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:


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.

Change History (1)

comment:1 Changed 13 years ago by dante

Resolution: wontfix
Status: newclosed

we can't dig up the attached event without doing insane things like adding unique id's to all nodes that pass through query().

Note: See TracTickets for help on using tickets.