chore: formatting
This commit is contained in:
parent
2be2bbd3cb
commit
5eedb539da
|
@ -35,7 +35,8 @@ export default class Container extends Renderable {
|
|||
// eslint-disable-next-line no-param-reassign
|
||||
child.parent = this;
|
||||
this.isDirty = true;
|
||||
const index = this._children.push(child) - 1;
|
||||
const index = this._children.length;
|
||||
this._children.push(child);
|
||||
this._childrenIndexes.set(child, index);
|
||||
this.container.addChild(child.internal);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user