mirror of
https://github.com/videojs/video.js.git
synced 2025-03-03 15:12:49 +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)
|
||||
// Having an element is not required
|
||||
if (typeof component.el === 'function' && component.el()) {
|
||||
this.el_.appendChild(component.el());
|
||||
if (typeof component['el'] === 'function' && component['el']()) {
|
||||
this.el_.appendChild(component['el']());
|
||||
}
|
||||
|
||||
// Return so it can stored on parent object if desired.
|
||||
|
Loading…
x
Reference in New Issue
Block a user