diff --git a/lib/scenemanager.js b/lib/scenemanager.js index bbf9efb..a3fa3ce 100644 --- a/lib/scenemanager.js +++ b/lib/scenemanager.js @@ -115,6 +115,11 @@ function SceneManager(p) if ( o == null ) o = this.addScene( fnScene ); + // MODIFIED + if (this.scene && this.scene.oScene && typeof this.scene.oScene.exit === 'function') { + this.scene.oScene.exit(); + } + // Re-arm the enter function at each show of the scene o.enterExecuted = false;