X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/6e39d509471fe9b4e2660e0d1631b350d0c66f40..2e847cf21b8ab9d15fa167b315ca5b2fa92638fc:/src/widgets/form/Radio.js diff --git a/src/widgets/form/Radio.js b/src/widgets/form/Radio.js index 5252efc4..252fec69 100644 --- a/src/widgets/form/Radio.js +++ b/src/widgets/form/Radio.js @@ -1,6 +1,6 @@ /*! - * Ext JS Library 3.1.0 - * Copyright(c) 2006-2009 Ext JS, LLC + * Ext JS Library 3.1.1 + * Copyright(c) 2006-2010 Ext JS, LLC * licensing@extjs.com * http://www.extjs.com/license */ @@ -61,7 +61,7 @@ Ext.form.Radio = Ext.extend(Ext.form.Checkbox, { setValue : function(v){ if (typeof v == 'boolean') { Ext.form.Radio.superclass.setValue.call(this, v); - } else { + } else if (this.rendered) { var r = this.getCheckEl().child('input[name=' + this.el.dom.name + '][value=' + v + ']', true); if(r){ Ext.getCmp(r.id).setValue(true); @@ -69,7 +69,7 @@ Ext.form.Radio = Ext.extend(Ext.form.Checkbox, { } return this; }, - + // private getCheckEl: function(){ if(this.inGroup){