Skip to content

Commit 7e26fdb

Browse files
committed
Merge branch 'master' of https://github.com/photonstorm/phaser
2 parents 6c5e1ba + 3537dce commit 7e26fdb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/scene/SceneManager.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ var SceneManager = new Class({
161161

162162
// Replace key in case the scene changed it
163163
key = newScene.sys.settings.key;
164-
164+
165165
this.keys[key] = newScene;
166166

167167
this.scenes.push(newScene);
@@ -356,7 +356,7 @@ var SceneManager = new Class({
356356

357357
if (index > -1)
358358
{
359-
this.keys[sceneKey] = undefined;
359+
delete this.keys[sceneKey];
360360
this.scenes.splice(index, 1);
361361

362362
if (this._start.indexOf(sceneKey) > -1)

0 commit comments

Comments
 (0)