Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed CDN Version that was breaking dev.html.

Fixed Double auto-setup
  • Loading branch information...
commit 4f34034c51118a655cced13964ed4a760fc28491 1 parent 9b881cd
@heff heff authored
Showing with 8 additions and 7 deletions.
  1. +1 −2  src/_begin.js
  2. +0 −3  src/_end.js
  3. +4 −1 src/core.js
  4. +3 −1 src/setup.js
View
3  src/_begin.js
@@ -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
;(function(window, undefined){
- var document = window.document,
- CDN_VERSION = "GENERATED_CDN_VSN";
+ var document = window.document;
View
3  src/_end.js
@@ -2,8 +2,5 @@
// Expose to global
window.VideoJS = window._V_ = VideoJS;
-// Run Auto-load players
-_V_.autoSetup();
-
// End self-executing function
})(window);
View
5 src/core.js
@@ -38,7 +38,10 @@ var VideoJS = function(id, addOptions, ready){
},
// Shortcut
-_V_ = VideoJS;
+_V_ = VideoJS,
+
+// CDN Version. Used to target right flash swf.
+CDN_VERSION = "GENERATED_CDN_VSN";
VideoJS.players = {};
View
4 src/setup.js
@@ -1,4 +1,6 @@
_V_.addEvent(window, "load", function(){
_V_.windowLoaded = true;
});
-_V_.autoSetupTimeout();
+
+// Run Auto-load players
+_V_.autoSetup();
Please sign in to comment.
Something went wrong with that request. Please try again.