expand-video.js: avoid double-initialize

This commit is contained in:
czaks 2014-04-16 11:52:42 +02:00
parent eb2e3e8760
commit f2b32fe3bc

View File

@ -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;