mirror of
https://github.com/photonstorm/phaser
synced 2024-11-28 07:31:11 +00:00
Add missing config when passing children only
This commit is contained in:
parent
6f3c0d2bb8
commit
fa2e76c18c
1 changed files with 8 additions and 0 deletions
|
@ -72,6 +72,14 @@ var StaticPhysicsGroup = new Class({
|
|||
singleConfig.classType = GetFastValue(singleConfig, 'classType', ArcadeSprite);
|
||||
});
|
||||
}
|
||||
else
|
||||
{
|
||||
// config is not defined and children is not a plain object nor an array of plain objects
|
||||
config = {
|
||||
internalCreateCallback: this.createCallbackHandler,
|
||||
internalRemoveCallback: this.removeCallbackHandler
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* The physics simulation.
|
||||
|
|
Loading…
Reference in a new issue