Opened 13 years ago
Closed 13 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 13 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:2 Changed 13 years ago by
Resolution: | fixed |
---|---|
Status: | closed → reopened |
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 13 years ago by
comment:4 Changed 13 years ago by
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
Note: See
TracTickets for help on using
tickets.
(In [10399]) Fixes #4338: allow setting widget startup methods via <script type="dojo/method" event="foo">