This makes a good case for allowing the removeChild to take an optional removeChildUi second argument, because then this whole function could just become _this._elements.removeChild(_elementName,true)