use local variable

This commit is contained in:
j 2009-11-21 00:08:49 +01:00
parent 61078d3c16
commit e947516896

View File

@ -75,7 +75,7 @@ $(document).ready(function() {
}, 100);
}
$('.srt').each(function() {
subtitleElement = $(this);
var subtitleElement = $(this);
var videoId = subtitleElement.attr('data-video');
if(!videoId) return;
var srtUrl = subtitleElement.attr('data-srt');