We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d6e8600 commit 70b8bfeCopy full SHA for 70b8bfe
1 file changed
src/gameobjects/group/Group.js
@@ -91,7 +91,7 @@ var Group = new Class({
91
* @type {Phaser.Structs.Set.<Phaser.GameObjects.GameObject>}
92
* @since 3.0.0
93
*/
94
- this.children = new Set(children);
+ this.children = new Set();
95
96
/**
97
* A flag identifying this object as a group.
@@ -236,6 +236,11 @@ var Group = new Class({
236
237
this.internalRemoveCallback = GetFastValue(config, 'internalRemoveCallback', null);
238
239
+ if (children)
240
+ {
241
+ this.addMultiple(children);
242
+ }
243
+
244
if (config)
245
{
246
this.createMultiple(config);
0 commit comments