diff --git a/src/core/display/Container.js b/src/core/display/Container.js index 0da9f31..89e10a1 100644 --- a/src/core/display/Container.js +++ b/src/core/display/Container.js @@ -86,7 +86,7 @@ */ addChildAt(child, index) { - if (index <= 0 || index >= this.children.length) + if (index < 0 || index >= this.children.length) { throw new Error(`${child}addChildAt: The index ${index} supplied is out of bounds ${this.children.length}`); }