Skip to content

Commit 183896f

Browse files
committed
Added parentContainer property
1 parent e31cae9 commit 183896f

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

src/gameobjects/GameObject.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,15 @@ var GameObject = new Class({
5555
*/
5656
this.type = type;
5757

58+
/**
59+
* The parent Container of this Game Object, if it has one.
60+
*
61+
* @name Phaser.GameObjects.GameObject#parentContainer
62+
* @type {Phaser.GameObjects.Container}
63+
* @since 3.4.0
64+
*/
65+
this.parentContainer = null;
66+
5867
/**
5968
* The name of this Game Object.
6069
* Empty by default and never populated by Phaser, this is left for developers to use.

src/gameobjects/container/Container.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -76,15 +76,6 @@ var Container = new Class({
7676
*/
7777
this.position = 0;
7878

79-
/**
80-
* The parent Container of this Container, if there is one.
81-
*
82-
* @name Phaser.GameObjects.Container#parentContainer
83-
* @type {Phaser.GameObjects.Container}
84-
* @since 3.4.0
85-
*/
86-
this.parentContainer = null;
87-
8879
/**
8980
* [description]
9081
*

0 commit comments

Comments
 (0)