Skip to content

Commit

Permalink
Merge pull request videojs#361 from Axonn/fix-component-child-adding
Browse files Browse the repository at this point in the history
Fix ability to add child after closure compiled
  • Loading branch information
Steve Heffernan committed Mar 8, 2013
2 parents f11c5d3 + 93f8737 commit bc723ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit bc723ac

Please sign in to comment.