Roo/form/ComboBoxArray.js
authoredward <edward@roojs.com>
Wed, 20 Jul 2016 07:46:54 +0000 (15:46 +0800)
committeredward <edward@roojs.com>
Wed, 20 Jul 2016 07:46:54 +0000 (15:46 +0800)
Roo/form/ComboBoxArray.js

index 32194e7..530279c 100644 (file)
@@ -276,12 +276,9 @@ Roo.extend(Roo.form.ComboBoxArray, Roo.form.TextField,
     reset : function()
     {
         //Roo.form.ComboBoxArray.superclass.reset.call(this); 
-        this.items.clear();
-        
-        Roo.each(this.outerWrap.select('.x-cbarray-item', true).elements, function(el){
-           el.remove();
+        this.items.each(function(f) {
+           f.remove(); 
         });
-        
         this.el.dom.value = '';
         if (this.hiddenEl) {
             this.hiddenEl.dom.value = '';