Opened 12 years ago

Closed 12 years ago

#4338 closed task (fixed)

Parser: allow overriding startup methods

Reported by: bill Owned by: bill
Priority: high Milestone: 1.0
Component: General Version: 0.9
Keywords: Cc:
Blocked By: Blocking:

Description

If function foo() is called by postCreate() etc., then you can define it like

<button dojoType=dijit.form.Button foo="...">

but can't define it like

<button dojoType=dijit.form.Button>
   <script type="dojo/method" event="foo">...

Allow this by changing parser to mixin foo into the parameters to the widget:

  new dijit.form.Button({foo: ...});

for both the first and second case (it's already done for the first case)

Change History (4)

comment:1 Changed 12 years ago by bill

Resolution: fixed
Status: newclosed

(In [10399]) Fixes #4338: allow setting widget startup methods via <script type="dojo/method" event="foo">

comment:2 Changed 12 years ago by alex

Resolution: fixed
Status: closedreopened

this change breaks dijit.Declaration's use of _wireUpMethod, meaning that the mail demo is b0rken as is the table demo in dojox.data. Reopening.

comment:3 Changed 12 years ago by bill

(In [10406]) updates needed to Declaration due to changes to parser (refs #4338)

comment:4 Changed 12 years ago by bill

Resolution: fixed
Status: reopenedclosed
Note: See TracTickets for help on using tickets.