1
0
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:
corwin.tomkinson 2013-03-07 11:37:51 +00:00
parent f11c5d3ca9
commit 93f8737fc7

View File

@ -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.