assets/js/romo/select.js in romo-0.13.0 vs assets/js/romo/select.js in romo-0.14.0

- old
+ new

@@ -128,9 +128,13 @@ this.elemWrapper.addClass('romo-btn-group'); } romoSelectDropdownElem.before(this.elemWrapper); this.elemWrapper.append(romoSelectDropdownElem); + // the elem wrapper should be treated like a child elem. add it to Romo's + // parent-child elems so it will be removed when the elem (select) is removed. + Romo.parentChildElems.add(this.elem, [this.elemWrapper]); + var caretClass = this.elem.data('romo-select-caret') || this.defaultCaretClass; if (caretClass !== undefined && caretClass !== 'none') { var caret = $('<i class="romo-select-caret '+caretClass+'"></i>'); caret.css({'line-height': romoSelectDropdownElem.css('line-height')}); caret.on('click', $.proxy(this.onCaretClick, this));