#13887 closed task (fixed)
simplify startup() code
Reported by: | bill | Owned by: | bill |
---|---|---|---|
Priority: | high | Milestone: | 1.7 |
Component: | Dijit | Version: | 1.6.1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description (last modified by )
Simplify startup() code:
- Remove isContainer: flag and instead make all widgets obey the isContainer:true contract of starting their children.
- Move _Container.startup() to _WidgetBase
- In parser, when deciding which widgets to startup, just check widget._started flag. No need to call getParent(), because if the widget did have a parent, the parent would have called startup() and _started would already be set.
Also, remove _Container.destroyDescendants() since it's redundant with _WidgetBase.destroyDescendants().
Change History (4)
comment:1 Changed 9 years ago by
Description: | modified (diff) |
---|---|
Summary: | simply startup() code → simplify startup() code |
comment:2 Changed 9 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
In [26531]: