mirror of
https://github.com/videojs/video.js.git
synced 2025-01-02 06:32:07 +02:00
Merge branch 'feature/fixing-cdn-version-var'
This commit is contained in:
commit
a2249ddf3e
@ -1,3 +1,4 @@
|
||||
* Fixed CDN Version which was breaking dev.html
|
||||
* Made full-window mode more independent
|
||||
* Added rakefile for release generation
|
||||
--------------------------------------------------------------------------------
|
||||
|
3
Rakefile
3
Rakefile
@ -73,11 +73,12 @@ namespace :build do
|
||||
end
|
||||
|
||||
Dir.foreach('src') do |item|
|
||||
next if (['.', '..', '.DS_Store', '_end.js'] + first_files).include? item
|
||||
next if (['.', '..', '.DS_Store', 'setup.js', '_end.js'] + first_files).include? item
|
||||
combined << File.read("src/#{item}")
|
||||
end
|
||||
|
||||
combined << File.read("flash/swfobject.js")
|
||||
combined << File.read("src/setup.js")
|
||||
combined << File.read("src/_end.js")
|
||||
|
||||
Rake::Log["Adding version number"]
|
||||
|
@ -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;
|
@ -2,8 +2,5 @@
|
||||
// Expose to global
|
||||
window.VideoJS = window._V_ = VideoJS;
|
||||
|
||||
// Run Auto-load players
|
||||
_V_.autoSetup();
|
||||
|
||||
// End self-executing function
|
||||
})(window);
|
@ -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 = {};
|
||||
|
||||
|
@ -1,4 +1,6 @@
|
||||
_V_.addEvent(window, "load", function(){
|
||||
_V_.windowLoaded = true;
|
||||
});
|
||||
_V_.autoSetupTimeout();
|
||||
|
||||
// Run Auto-load players
|
||||
_V_.autoSetup();
|
Loading…
Reference in New Issue
Block a user