mirror of
https://github.com/videojs/video.js.git
synced 2025-02-08 12:05:47 +02:00
Fix ability to add child after closure compiled
This commit is contained in:
parent
f11c5d3ca9
commit
93f8737fc7
@ -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