Opened 6 years ago

Closed 6 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 6 years ago by bill

Resolution: invalid
Status: newclosed
Summary: ContentPane addChild index cannot be non sequentialContentPane: addChild index cannot be non sequential

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.

Note: See TracTickets for help on using tickets.