From f2b32fe3bc9ac78c254b7af97ff5e4eb9cc861d0 Mon Sep 17 00:00:00 2001 From: czaks Date: Wed, 16 Apr 2014 11:52:42 +0200 Subject: [PATCH] expand-video.js: avoid double-initialize --- js/expand-video.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/expand-video.js b/js/expand-video.js index d2e35249..84a9108f 100644 --- a/js/expand-video.js +++ b/js/expand-video.js @@ -6,6 +6,9 @@ if (typeof _ == 'undefined') { } function setupVideo(thumb, url) { + if (thumb.videoAlreadySetUp) return; + thumb.videoAlreadySetUp = true; + var video = null; var videoContainer, videoHide; var expanded = false;