Skip to content

Commit 772159d

Browse files
authored
Merge pull request phaserjs#4118 from pierpo/patch-1
Fix issue with null config in Arcade PhysicsGroup constructor
2 parents e9b2250 + 63458ab commit 772159d

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/physics/arcade/PhysicsGroup.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,14 @@ var PhysicsGroup = new Class({
121121
singleConfig.removeCallback = this.removeCallbackHandler;
122122
});
123123
}
124+
else
125+
{
126+
// config is not defined and children is not a plain object nor an array of plain objects
127+
config = {
128+
createCallback: this.createCallbackHandler,
129+
removeCallback: this.removeCallbackHandler
130+
}
131+
}
124132

125133
/**
126134
* The physics simulation.

0 commit comments

Comments
 (0)