We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a0b8b5 commit f1cb146Copy full SHA for f1cb146
1 file changed
src/core/StateManager.js
@@ -307,7 +307,10 @@ Phaser.StateManager.prototype = {
307
// Already got a state running?
308
if (this.current)
309
{
310
- this.onShutDownCallback.call(this.callbackContext, this.game);
+ if (this.onShutDownCallback)
311
+ {
312
+ this.onShutDownCallback.call(this.callbackContext, this.game);
313
+ }
314
315
this.game.tweens.removeAll();
316
0 commit comments