mirror of
https://github.com/photonstorm/phaser
synced 2024-11-23 05:03:37 +00:00
Merge pull request #3409 from macbury/scene_key_exist
Remove scene key in SceneManager
This commit is contained in:
commit
3537dce193
1 changed files with 2 additions and 2 deletions
|
@ -161,7 +161,7 @@ var SceneManager = new Class({
|
|||
|
||||
// Replace key in case the scene changed it
|
||||
key = newScene.sys.settings.key;
|
||||
|
||||
|
||||
this.keys[key] = newScene;
|
||||
|
||||
this.scenes.push(newScene);
|
||||
|
@ -356,7 +356,7 @@ var SceneManager = new Class({
|
|||
|
||||
if (index > -1)
|
||||
{
|
||||
this.keys[sceneKey] = undefined;
|
||||
delete this.keys[sceneKey];
|
||||
this.scenes.splice(index, 1);
|
||||
|
||||
if (this._start.indexOf(sceneKey) > -1)
|
||||
|
|
Loading…
Reference in a new issue