1
0
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:
Steve Heffernan 2013-03-07 16:39:18 -08:00
commit bc723acb06

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.