Skip to content

Commit a4b3570

Browse files
committed
You can pass in the config object as the children argument to a Group
1 parent fd45182 commit a4b3570

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

v3/src/gameobjects/group/GroupFactory.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@ var Group = require('./Group');
22

33
var GroupFactory = function (scene, children, config)
44
{
5+
if (typeof children === 'object' && config === undefined)
6+
{
7+
config = children;
8+
children = [];
9+
}
10+
511
return new Group(scene, children, config);
612
};
713

0 commit comments

Comments
 (0)