emptying container on new game to remove flicker (hopefully)
This commit is contained in:
parent
5797639f99
commit
42f380b1ec
|
@ -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. <a id="restart" href="">Click here</a> to start over.'
|
||||
$('#restart').click ->
|
||||
@container.empty()
|
||||
player = new Player @story, @id
|
||||
$("##{@id}").data 'player', player
|
||||
player.play()
|
||||
|
|
Loading…
Reference in New Issue