Roo/bootstrap/Radio.js
authoredward <edward@roojs.com>
Tue, 26 Jun 2018 05:16:16 +0000 (13:16 +0800)
committeredward <edward@roojs.com>
Tue, 26 Jun 2018 05:16:16 +0000 (13:16 +0800)
Roo/bootstrap/Radio.js

index 7bf9427..197188c 100644 (file)
 Roo.bootstrap.Radio = function(config){
     Roo.bootstrap.Radio.superclass.constructor.call(this, config);
     
-    this.addEvents({
-       /**
-        * @event click
-        * Fires when the element is click.
-        * @param {Roo.bootstrap.CheckBox} this This input
-        */
-       click : true
-    });
 };
 
 Roo.extend(Roo.bootstrap.Radio, Roo.bootstrap.Component, {
@@ -62,6 +54,7 @@ Roo.extend(Roo.bootstrap.Radio, Roo.bootstrap.Component, {
     
     onClick : function()
     {
+        if(this.parent().fireEvent(''))
         this.setChecked(true);
     },