Ticket #613 (closed enhancement: wontfix)

Opened 2 years ago

Last modified 12 months ago

request: dojoAttachPoint should have currentPoint method

Reported by: anonymous Owned by: alex
Priority: normal Milestone: 0.9
Component: Dijit Version: 0.3
Severity: normal Keywords: dojoAccessPoint
Cc: dyatel15@…

Description

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

Changed 2 years ago by alex

how is this different from currentTarget?

Changed 2 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.

Changed 2 years ago by anonymous

  • keywords dojoAccessPoint added
  • cc dyatel15@… 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 http://trac.dojotoolkit.org/ticket/174 but the solution with array is not enough, because all Points are anonymous.

Changed 2 years ago by dylan

  • owner changed from anonymous to alex
  • component changed from General to Events
  • milestone set to 0.5

Changed 12 months ago by peller

  • status changed from new to closed
  • component changed from Events to Dijit
  • resolution set to wontfix
Note: See TracTickets for help on using tickets.