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:
parent
b528473655
commit
1bf64890c0
@ -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))
|
||||
|
||||
--------------------
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user