1
0
mirror of https://github.com/videojs/video.js.git synced 2025-01-02 06:32:07 +02:00

@vtytar fixed auto-setup failing if taking too long to load. Fixes #2386. Closes #3233.

This commit is contained in:
Volodymyr Tytar 2016-04-04 13:05:26 -04:00 committed by Gary Katsevman
parent dc3fc686e7
commit 68bb36e3eb
2 changed files with 5 additions and 2 deletions

View File

@ -2,7 +2,7 @@ CHANGELOG
=========
## HEAD (Unreleased)
_(none)_
* @vtytar fixed auto-setup failing if taking too long to load ([view](http://github.com/videojs/video.js/pull/3233))
--------------------

View File

@ -72,7 +72,10 @@ var autoSetup = function(){
// Pause to let the DOM keep processing
var autoSetupTimeout = function(wait, vjs){
videojs = vjs;
if (vjs) {
videojs = vjs;
}
setTimeout(autoSetup, wait);
};