Skip to content

Commit

Permalink
@vtytar fixed auto-setup failing if taking too long to load. Fixes #2386
Browse files Browse the repository at this point in the history
. Closes #3233.
  • Loading branch information
vtytar authored and gkatsev committed Apr 4, 2016
1 parent dc3fc68 commit 68bb36e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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))

--------------------

Expand Down
5 changes: 4 additions & 1 deletion src/js/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};

Expand Down

0 comments on commit 68bb36e

Please sign in to comment.