From 64648958477f2b8b1b9bcba8b732475c107933bf Mon Sep 17 00:00:00 2001 From: Ernie Park Date: Thu, 26 Jan 2012 16:25:53 -0500 Subject: [PATCH] remove nbsp from empty subtitle li's so it pushes up to the top --- js/video_player.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/video_player.js b/js/video_player.js index 152a1b0974..e91813b5f1 100644 --- a/js/video_player.js +++ b/js/video_player.js @@ -80,12 +80,12 @@ function change_video_speed(speed, youtube_id) { function caption_at(index) { if (captions==0) - return " "; + return ""; text_array=captions.text if ((index>=text_array.length) || (index < 0)) - return " "; + return ""; return text_array[index]; }