From 0f4b19b94c7602a5f2587bba00c7b92e1880d5ee Mon Sep 17 00:00:00 2001 From: Carlos Date: Tue, 20 Jan 2015 15:22:24 +0000 Subject: [PATCH] Fixed problem with removing component Component.id and Component.name are functions we should either call the functions or pass component.id_ and component.name_ --- src/js/component.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/component.js b/src/js/component.js index c287fde9b..39ea706cc 100644 --- a/src/js/component.js +++ b/src/js/component.js @@ -435,8 +435,8 @@ vjs.Component.prototype.removeChild = function(component){ if (!childFound) return; - this.childIndex_[component.id] = null; - this.childNameIndex_[component.name] = null; + this.childIndex_[component.id()] = null; + this.childNameIndex_[component.name()] = null; var compEl = component.el(); if (compEl && compEl.parentNode === this.contentEl()) {