Skip to content

Commit

Permalink
@dmlap exported the videojs.log function. closes #2317
Browse files Browse the repository at this point in the history
  • Loading branch information
dmlap authored and heff committed Jul 10, 2015
1 parent 590e731 commit f53f3dc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ CHANGELOG
* @mmcc added a currentTime tooltip to the progress handle ([view](https://github.com/videojs/video.js/pull/2255))
* @pavelhoral fixed subclassing without a constructor ([view](https://github.com/videojs/video.js/pull/2308))
* @dmlap fixed a vjs_getProperty error caused by a progress check before the swf was ready ([view](https://github.com/videojs/video.js/pull/2316))
* @dmlap exported the videojs.log function ([view](https://github.com/videojs/video.js/pull/2317))

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

Expand Down
7 changes: 7 additions & 0 deletions src/js/video.js
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,13 @@ videojs.addLanguage = function(code, data){
return merge(globalOptions.languages, { [code]: data })[code];
};

/**
* Log debug messages.
*
* @param {...Object} messages One or more messages to log
*/
videojs.log = log;

// REMOVING: We probably should add this to the migration plugin
// // Expose but deprecate the window[componentName] method for accessing components
// Object.getOwnPropertyNames(Component.components).forEach(function(name){
Expand Down

0 comments on commit f53f3dc

Please sign in to comment.