Roo/form/ComboBoxArray.js
[roojs1] / Roo / form / ComboBoxArray.js
index e2482d6..8c8ebd2 100644 (file)
@@ -294,6 +294,7 @@ Roo.extend(Roo.form.ComboBoxArray, Roo.form.TextField,
          
         this.reset();
         
+        Roo.log(this.items);
         
         
         if (this.store.isLocal && (typeof(v) == 'string')) {
@@ -469,7 +470,7 @@ Roo.extend(Roo.form.ComboBoxArray.Item, Roo.BoxComponent, {
             return;
         }
         
-        if(false !== this.cb.fireEvent('remove', this.cb, this)){
+        if(false !== this.cb.fireEvent('beforeremove', this.cb, this)){
             this.cb.items.remove(this);
             this.el.child('img').un('click', this.remove, this);
             this.el.remove();