From 42f380b1ec73ed3ae2dea4c97c708fe8a5931010 Mon Sep 17 00:00:00 2001 From: Rudis Muiznieks Date: Wed, 2 Jul 2014 16:55:12 -0500 Subject: [PATCH] emptying container on new game to remove flicker (hopefully) --- src/player.coffee | 1 + 1 file changed, 1 insertion(+) 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()