Add missing config when passing children only

This commit is contained in:
samme 2020-05-11 10:24:01 -07:00
parent 6f3c0d2bb8
commit fa2e76c18c

View file

@ -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.