mirror of
https://github.com/videojs/video.js.git
synced 2025-03-05 15:16:06 +02:00
Merge pull request #361 from Axonn/fix-component-child-adding
Fix ability to add child after closure compiled
This commit is contained in:
commit
bc723acb06
@ -288,8 +288,8 @@ vjs.Component.prototype.addChild = function(child, options){
|
|||||||
|
|
||||||
// Add the UI object's element to the container div (box)
|
// Add the UI object's element to the container div (box)
|
||||||
// Having an element is not required
|
// Having an element is not required
|
||||||
if (typeof component.el === 'function' && component.el()) {
|
if (typeof component['el'] === 'function' && component['el']()) {
|
||||||
this.el_.appendChild(component.el());
|
this.el_.appendChild(component['el']());
|
||||||
}
|
}
|
||||||
|
|
||||||
// Return so it can stored on parent object if desired.
|
// Return so it can stored on parent object if desired.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user