mirror of
https://github.com/photonstorm/phaser
synced 2024-11-28 15:41:37 +00:00
You can pass in the config object as the children argument to a Group
This commit is contained in:
parent
fd45182bde
commit
a4b357050d
1 changed files with 6 additions and 0 deletions
|
@ -2,6 +2,12 @@ var Group = require('./Group');
|
|||
|
||||
var GroupFactory = function (scene, children, config)
|
||||
{
|
||||
if (typeof children === 'object' && config === undefined)
|
||||
{
|
||||
config = children;
|
||||
children = [];
|
||||
}
|
||||
|
||||
return new Group(scene, children, config);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue