1
0
mirror of https://github.com/videojs/video.js.git synced 2025-09-16 09:26:56 +02:00

Fixed CDN Version that was breaking dev.html.

Fixed Double auto-setup
This commit is contained in:
Steve Heffernan
2012-01-14 18:13:13 -08:00
parent 9b881cdf13
commit 4f34034c51
4 changed files with 8 additions and 7 deletions

View File

@@ -21,5 +21,4 @@ along with Video.js. If not, see <http://www.gnu.org/licenses/>.
// Self-executing function to prevent global vars and help with minification // Self-executing function to prevent global vars and help with minification
;(function(window, undefined){ ;(function(window, undefined){
var document = window.document, var document = window.document;
CDN_VERSION = "GENERATED_CDN_VSN";

View File

@@ -2,8 +2,5 @@
// Expose to global // Expose to global
window.VideoJS = window._V_ = VideoJS; window.VideoJS = window._V_ = VideoJS;
// Run Auto-load players
_V_.autoSetup();
// End self-executing function // End self-executing function
})(window); })(window);

View File

@@ -38,7 +38,10 @@ var VideoJS = function(id, addOptions, ready){
}, },
// Shortcut // Shortcut
_V_ = VideoJS; _V_ = VideoJS,
// CDN Version. Used to target right flash swf.
CDN_VERSION = "GENERATED_CDN_VSN";
VideoJS.players = {}; VideoJS.players = {};

View File

@@ -1,4 +1,6 @@
_V_.addEvent(window, "load", function(){ _V_.addEvent(window, "load", function(){
_V_.windowLoaded = true; _V_.windowLoaded = true;
}); });
_V_.autoSetupTimeout();
// Run Auto-load players
_V_.autoSetup();