Opened 13 years ago
Closed 13 years ago
#5252 closed defect (fixed)
startup called twice for children of a layout widget within a widget template
Reported by: | guest | Owned by: | dante |
---|---|---|---|
Priority: | high | Milestone: | 1.1 |
Component: | Dijit | Version: | 1.0 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
If you define a widget with widgetsInTemplate: true, and there is a layout widget in the template (e.g. LayoutContainer?), then any children of the layout widget have their startup method called twice.
The first call is from _LayoutWidget.startup, and the second is from dojo.parser.instantiate.
Will attach a test case.
Attachments (2)
Change History (5)
Changed 13 years ago by
comment:1 Changed 13 years ago by
Milestone: | → 1.1 |
---|---|
Owner: | set to dante |
Status: | new → assigned |
comment:2 Changed 13 years ago by
_widget reports this._started=true if it makes it to _Widget.prototype.startup, which the supported behavior is that it should make it up that far in the inheritance chain.
a check for widget._started in parser fixes this issue.
Changed 13 years ago by
Attachment: | parser.patch added |
---|
comment:3 Changed 13 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
testcase