From e9475168964d3671de2d150665ce89fd50f4e3f1 Mon Sep 17 00:00:00 2001 From: j Date: Sat, 21 Nov 2009 00:08:49 +0100 Subject: [PATCH] use local variable --- jquery.srt.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jquery.srt.js b/jquery.srt.js index 3919f19..6fe057a 100644 --- a/jquery.srt.js +++ b/jquery.srt.js @@ -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');