From ee64d8c02430020757a4e596b8cab824f8c202cc Mon Sep 17 00:00:00 2001 From: Peter Fogg Date: Mon, 10 Jun 2013 11:01:22 -0400 Subject: [PATCH] Fixed .75 and 1.5 speeds playing at 1.0 speed. --- .../lib/xmodule/xmodule/js/src/video/display.coffee | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/common/lib/xmodule/xmodule/js/src/video/display.coffee b/common/lib/xmodule/xmodule/js/src/video/display.coffee index 79460a4e24..161d174772 100644 --- a/common/lib/xmodule/xmodule/js/src/video/display.coffee +++ b/common/lib/xmodule/xmodule/js/src/video/display.coffee @@ -26,12 +26,11 @@ class @Video @videos[speed || @speed] parseVideos: (videos) -> - @videos = {} - @videos['.75'] = @el.data('youtube-id-0-75') - @videos['1.0'] = @el.data('normal-speed-video-id') - @videos['1.25'] = @el.data('youtube-id-1-25') - @videos['1.5'] = @el.data('youtube-id-1-5') - alert @videos['1.5'] + @videos = + '0.75': @el.data('youtube-id-0-75') + '1.0': @el.data('normal-speed-video-id') + '1.25': @el.data('youtube-id-1-25') + '1.50': @el.data('youtube-id-1-5') parseSpeed: -> @setSpeed($.cookie('video_speed'))