We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
displayList.getIndex
1 parent a6716af commit 5457e46Copy full SHA for 5457e46
1 file changed
src/gameobjects/GameObject.js
@@ -639,7 +639,6 @@ var GameObject = new Class({
639
640
while (parent)
641
{
642
- // indexes.unshift([parent.getIndex(child), parent.name]);
643
indexes.unshift(parent.getIndex(child));
644
645
child = parent;
@@ -654,8 +653,7 @@ var GameObject = new Class({
654
653
}
655
656
657
- // indexes.unshift([this.scene.sys.displayList.getIndex(child), 'root']);
658
- indexes.unshift(this.scene.sys.displayList.getIndex(child));
+ indexes.unshift(this.displayList.getIndex(child));
659
660
return indexes;
661
},
0 commit comments