Opened 12 years ago

Closed 9 years ago

#11428 closed enhancement (fixed)

[patch][cla] dojox.dtl.contrib.dijit - have dojoAttachEvent recognize extra args

Reported by: ben hockey Owned by: dylan
Priority: high Milestone: 1.9
Component: DojoX DTL Version: 1.5.0b2
Keywords: Cc:
Blocked By: Blocking:


this small patch would change dojoAttachEvent on a widget to recognize extra args the same as on a node.

for example in your template if you have,

    <ul dojoAttachEvent="onclick:clicked 'extra'">

then in your context/widget you have

    clicked: function () {

you'll see the event and 'extra' logged to the console when you click on one of the items.

with a widget in the template, you only get the arguments which are passed from the event.

    <div dojoType="dijit.form.Button" dojoAttachEvent="onClick:clicked 'extra'">Button</div>

clicking the button won't show 'extra'. this is the same as what dijit does but it would be convenient to be able to pass extra args even when the event is generated from a widget.

Attachments (2)

11428.html (1.0 KB) - added by ben hockey 12 years ago.
11428.diff (632 bytes) - added by ben hockey 12 years ago.

Download all attachments as: .zip

Change History (4)

Changed 12 years ago by ben hockey

Attachment: 11428.html added

Changed 12 years ago by ben hockey

Attachment: 11428.diff added

comment:1 Changed 9 years ago by dylan

Milestone: tbd1.9
Owner: changed from Neil Roberts to dylan
Status: newassigned

comment:2 Changed 9 years ago by dylan

Resolution: fixed
Status: assignedclosed

In [31069]:

fixes #11428, old DTL patch, !strict

Note: See TracTickets for help on using tickets.