You can pass in the config object as the children argument to a Group

This commit is contained in:
Richard Davey 2017-08-30 23:56:18 +01:00
parent fd45182bde
commit a4b357050d

View file

@ -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);
};