Remove "not-started" class from element when movie "really" starts
This commit is contained in:
parent
b15804ef0c
commit
097a3653dd
@ -32,7 +32,6 @@ class AsciiIo.PlayerView extends Backbone.View
|
||||
|
||||
onStartPromptClick: ->
|
||||
@hideToggleOverlay()
|
||||
@$el.removeClass('not-started')
|
||||
@movie.togglePlay()
|
||||
|
||||
onMovieLoaded: (asciicast) ->
|
||||
@ -65,6 +64,9 @@ class AsciiIo.PlayerView extends Backbone.View
|
||||
@movie.on 'movie-awake', (frame) =>
|
||||
@rendererView.restartCursorBlink()
|
||||
|
||||
@movie.on 'movie-started', =>
|
||||
@$el.removeClass('not-started')
|
||||
|
||||
@movie.on 'movie-finished', =>
|
||||
@rendererView.stopCursorBlink()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user