diff --git a/distribution.amd/backbone-forms.js b/distribution.amd/backbone-forms.js index f68fbf06..751fa610 100644 --- a/distribution.amd/backbone-forms.js +++ b/distribution.amd/backbone-forms.js @@ -1786,7 +1786,7 @@ Form.editors.Select = Form.editors.Base.extend({ * @return {String} HTML */ _arrayToHtml: function(array) { - var html = $(); + var html = document.createDocumentFragment(); //Generate HTML _.each(array, function(option) { @@ -1795,14 +1795,14 @@ Form.editors.Select = Form.editors.Base.extend({ var optgroup = $("") .attr("label",option.group) .html( this._getOptionsHtml(option.options) ); - html = html.add(optgroup); + html.appendChild(optgroup[0]); } else { var val = (option.val || option.val === 0) ? option.val : ''; - html = html.add( $('