chore: formatting

This commit is contained in:
cha0s 2021-03-19 08:57:08 -05:00
parent 2be2bbd3cb
commit 5eedb539da

View File

@ -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);
}