diff --git a/src/player.coffee b/src/player.coffee index 4860f82..9c6cc6c 100644 --- a/src/player.coffee +++ b/src/player.coffee @@ -66,6 +66,7 @@ class Player if @container.find('a:not(.disabled):not(.external)').length == 0 @container.append @converter.makeHtml '## The End\n\nYou have reached the end of this story. Click here to start over.' $('#restart').click -> + @container.empty() player = new Player @story, @id $("##{@id}").data 'player', player player.play()