Opened 14 years ago

Closed 12 years ago

#695 closed enhancement (wontfix)

dojo.event.connect doesn't accept the following parameters: 'around', object, methodName, function

Reported by: Jonathan Aquino Owned by: alex
Priority: high Milestone: 1.0
Component: Events Version: 0.2
Keywords: Cc: alex
Blocked By: Blocking:

Description

dojo.event.connect doesn't accept the following parameters: 'around', object, methodName, function

Instead I am having to use the following workaround:

dojo.event.connect('around', foo, 'addPanel', dojo.lang.nameAnonFunc(function(invocation) {
    ... function body ...
}, dj_global)); 

It would be good to directly handle this common set of parameters for around advice.

Change History (3)

comment:1 Changed 13 years ago by dylan

Component: GeneralEvents
Milestone: 0.6
Owner: changed from anonymous to alex
Type: defectenhancement

comment:2 Changed 12 years ago by tk

Cc: alex added

Pinging for an update from Alex...

comment:3 Changed 12 years ago by alex

Resolution: wontfix
Status: newclosed

Marking "wontfix". The construction above is tortured and could easily be written as:

dojo.event.connect("around", foo, "addPanel", dj_global, function(){ ... function body ... });

Which is both clearer and works as expected.

Note: See TracTickets for help on using tickets.