Remove "not-started" class from element when movie "really" starts

This commit is contained in:
Marcin Kulik 2012-04-15 19:37:23 +02:00
parent b15804ef0c
commit 097a3653dd

View File

@ -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()