Roo/form/ComboBoxArray.js
[roojs1] / Roo / form / ComboBoxArray.js
index 8c8ebd2..ad761e3 100644 (file)
@@ -276,9 +276,8 @@ Roo.extend(Roo.form.ComboBoxArray, Roo.form.TextField,
     reset : function()
     {
         //Roo.form.ComboBoxArray.superclass.reset.call(this); 
-        this.items.each(function(f) {
-           f.remove(); 
-        });
+        this.items.clear();
+        
         this.el.dom.value = '';
         if (this.hiddenEl) {
             this.hiddenEl.dom.value = '';
@@ -295,6 +294,7 @@ Roo.extend(Roo.form.ComboBoxArray, Roo.form.TextField,
         this.reset();
         
         Roo.log(this.items);
+        Roo.log(v);
         
         
         if (this.store.isLocal && (typeof(v) == 'string')) {