Roo/form/ComboBoxArray.js
authorEdward <edward@roojs.com>
Wed, 16 Jul 2014 09:20:21 +0000 (17:20 +0800)
committerEdward <edward@roojs.com>
Wed, 16 Jul 2014 09:20:21 +0000 (17:20 +0800)
Roo/form/ComboBoxArray.js

index 89b9097..f1c295b 100644 (file)
 
 Roo.form.ComboBoxArray = function(config)
 {
+    this.addEvents({
+        /**
+         * @event remove
+         * Fires when remove the value from the list
+            * @param {Roo.form.ComboBox} combo This combo box
+            */
+        'remove' : true
+        
+        
+    });
     
     Roo.form.ComboBoxArray.superclass.constructor.call(this, config);
     
@@ -452,5 +462,7 @@ Roo.extend(Roo.form.ComboBoxArray.Item, Roo.BoxComponent, {
         this.el.child('img').un('click', this.remove, this);
         this.el.remove();
         this.cb.updateHiddenEl();
+        
+        this.fireEvent('remove', this);
     }
 });
\ No newline at end of file