Temporary fix to set the speed of video player to 1.0 regardless of previous state

This commit is contained in:
Carlos Andrés Rocha
2012-09-13 11:26:52 -04:00
parent 16d27737df
commit 9fb5346571

View File

@@ -33,11 +33,7 @@ class @Video
@speeds = ($.map @videos, (url, speed) -> speed).sort()
setSpeed: (newSpeed) ->
if @videos[newSpeed] != undefined
@speed = newSpeed
$.cookie('video_speed', "#{newSpeed}", expires: 3650, path: '/')
else
@speed = '1.0'
@speed = '1.0'
embed: ->
@player = new VideoPlayer video: this