1
0
mirror of https://github.com/videojs/video.js.git synced 2024-11-24 08:42:25 +02:00

@misteroneill include child components with `true` in options. closes #2424

This commit is contained in:
Pat O'Neill 2015-08-10 15:07:59 -04:00 committed by David LaPalomento
parent b528473655
commit 1bf64890c0
2 changed files with 7 additions and 0 deletions

View File

@ -89,6 +89,7 @@ CHANGELOG
* @misteroneill restore Html5.Events ([view](https://github.com/videojs/video.js/pull/2421))
* @misteroneill removed the deprecated Component init method ([view](https://github.com/videojs/video.js/pull/2427))
* @misteroneill restore videojs.formatTime ([view](https://github.com/videojs/video.js/pull/2420))
* @misteroneill include child components with `true` in options ([view](https://github.com/videojs/video.js/pull/2424))
--------------------

View File

@ -501,6 +501,12 @@ class Component {
return;
}
// Allow options to be passed as a simple boolean if no configuration
// is necessary.
if (opts === true) {
opts = {};
}
// We also want to pass the original player options to each component as well so they don't need to
// reach back into the player for options later.
opts.playerOptions = this.options_.playerOptions;