Ticket #4920 (closed defect: fixed)
_Container.addChild() tests for _started attribute
| Reported by: | rcoup | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.1 |
| Component: | Dijit | Version: | 0.9 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
dijit._Container.addChild() tests for the _started attribute on the parent widget to decide whether to call a child widgets startup() method.
16 widgets implement _Container but only 8 use _started (rough grep count).
This will only be noticeable if people are messing with containers dynamically. eg. adding a menu item programmatically after the menu is created.
Widgets that implement _Container but don't use _started:
- dijit.form.Button
- dijit.form.HorizontalSlider?
- dijit._TreeNode
- dijit.Menu
- dijit.Toolbar
(from a quick grep, may not include everything)
Change History
Note: See
TracTickets for help on using
tickets.