From 828e8ea7c15056255bd65a5549ea1bedecaa35f7 Mon Sep 17 00:00:00 2001 From: Volodymyr Tytar Date: Fri, 1 Apr 2016 12:18:02 +0300 Subject: [PATCH] do not reset videojs when autoSetupTimeout called on autoSetup retry --- src/js/setup.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/js/setup.js b/src/js/setup.js index 5e5b9277ec..842a36cbe2 100644 --- a/src/js/setup.js +++ b/src/js/setup.js @@ -72,7 +72,8 @@ var autoSetup = function(){ // Pause to let the DOM keep processing var autoSetupTimeout = function(wait, vjs){ - videojs = vjs; + if (vjs) + videojs = vjs; setTimeout(autoSetup, wait); };