Opened 15 years ago

Closed 13 years ago

#613 closed enhancement (wontfix)

request: dojoAttachPoint should have currentPoint method

Reported by: anonymous Owned by: alex
Priority: high Milestone: 0.9
Component: Dijit Version: 0.3
Keywords: dojoAccessPoint Cc: [email protected]
Blocked By: Blocking:


let's say we have dojoAttachPoint=myPoint; dojoAttachEvent=myEvent;

It should be possible to detect from which point we've got an event: function myEvent(e){

alert(e.currentPoint); should be "myPoint" in a alert box


or something similar. This method would be usefull if you have one common function for several dojopoints.

Change History (5)

comment:1 Changed 15 years ago by alex

how is this different from currentTarget?

comment:2 Changed 15 years ago by anonymous

currentTarget returns pointer to html (dom?.) currentPoint should return a name of an dojoAttachPoint.

Let's say I have 5 editors. They have common dojoAttachEvent="makeEditable" method but different dojoAttachPoint="editor1" (for first one) in a template file.

So method e.currentPoint should return editor1, editor2 and so on. Today I need to create separate dojoAttachEvent for each editor.

comment:3 Changed 15 years ago by anonymous

Cc: [email protected] added
Keywords: dojoAccessPoint added

In general, it would be usefull to have access to the name of dojoAttachPoint. For example, like this:

dojoAccessPoint[]; this.dojoAccessPointeditor1?.innerHTML = "something";

I found similar resolved request but the solution with array is not enough, because all Points are anonymous.

comment:4 Changed 14 years ago by dylan

Component: GeneralEvents
Milestone: 0.5
Owner: changed from anonymous to alex

comment:5 Changed 13 years ago by Adam Peller

Component: EventsDijit
Resolution: wontfix
Status: newclosed
Note: See TracTickets for help on using tickets.