Opened 10 years ago

Closed 10 years ago

#14726 closed defect (invalid)

Documentation error for NodeList (reference guide)

Reported by: mchamplain Owned by: mchamplain
Priority: undecided Milestone: tbd
Component: Documentation Version: 1.7.1
Keywords: Cc:
Blocked By: Blocking:


the documentation state than we can do query("...").onclick(.... but it doesn't work with 1.7.1, I was able to make it work using query("...").on("click", function...

Change History (2)

comment:1 Changed 10 years ago by bill

Owner: set to mchamplain
Status: newpending

The onclick() method still exists and works: I can run

dojo.query("*").onclick(function(){ console.log("clicked"); });

from the firebug console after loading dojo/tests/NodeList-fx.html, and then clicking the page prints messages to the console.

Further, it appears to be setup from NodeList.js itself:

var _oe = "on" + evt;
nlp[_oe] = function(a, b){
	return this.connect(_oe, a, b);

Can you attach a test case of what's failing for you?

FYI, I see an onclick() method referenced in the NodeList-fx.js API comments and in

comment:2 Changed 10 years ago by trac-o-bot

Resolution: invalid
Status: pendingclosed

Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!

Note: See TracTickets for help on using tickets.