Opened 15 years ago
Closed 14 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: |
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 (5)
comment:1 Changed 15 years ago by
comment:2 Changed 15 years ago by
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
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 http://trac.dojotoolkit.org/ticket/174 but the solution with array is not enough, because all Points are anonymous.
comment:4 Changed 15 years ago by
Component: | General → Events |
---|---|
Milestone: | → 0.5 |
Owner: | changed from anonymous to alex |
comment:5 Changed 14 years ago by
Component: | Events → Dijit |
---|---|
Resolution: | → wontfix |
Status: | new → closed |
how is this different from currentTarget?