Opened 8 years ago
Closed 8 years ago
#17252 closed defect (invalid)
ContentPane: addChild index cannot be non sequential
Reported by: | lukevenn | Owned by: | |
---|---|---|---|
Priority: | undecided | Milestone: | tbd |
Component: | Dijit | Version: | 1.9.0 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
Specifying a higher index causes an error as the nextSibling value is null meaning that the next test of refNode.nodeType will throw error.
example: container.addChild(widget1, 0); => added ok container.addChild(widget2, 3); => error thrown
Change History (1)
comment:1 Changed 8 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
Summary: | ContentPane addChild index cannot be non sequential → ContentPane: addChild index cannot be non sequential |
Note: See
TracTickets for help on using
tickets.
It's natural to get exceptions when you call functions with illegal parameters. As I wrote in #16874, passing an index to addChild() that's too high isn't supposed to work, and I'm not even sure what you would expect to happen in the above case.