Ticket #526 (closed enhancement: fixed)
Requesting dojo.event.connect always set up "this"
| Reported by: | cris@… | Owned by: | anonymous |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Core | Version: | 0.2 |
| Severity: | normal | Keywords: | event, connect, currentTarget |
| Cc: | jeoffwilks@… |
Description
If I set up <div onclick="doSomething(this)">and text</div>, the browser will set up the DIV element as "this" when the handler runs. It would be really nice if Dojo could set up effectively the same thing when I do:
dojo.event.connect(myDiv, "onclick", function(evt) {doSomething(this)})
(The enhancement would also be useful when using "connect" for putting advice on methods.)
thanks
Change History
Note: See
TracTickets for help on using
tickets.