mirror of
https://github.com/wassname/phaser.git
synced 2026-07-27 11:25:30 +08:00
Phaser.Game constructor can now be passed a single object containing game settings + Stage settings, useful for advanced configurations.
This commit is contained in:
@@ -32,7 +32,7 @@ Phaser.StateManager = function (game, pendingState) {
|
||||
*/
|
||||
this._pendingState = null;
|
||||
|
||||
if (pendingState !== null)
|
||||
if (typeof pendingState !== 'undefined' && pendingState !== null)
|
||||
{
|
||||
this._pendingState = pendingState;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user