X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/c930e9176a5a85509c5b0230e2bff5c22a591432..c8256059947f3aa8f5b0a9a2acf55e2142bb4742:/docs/source/Radio.html?ds=sidebyside diff --git a/docs/source/Radio.html b/docs/source/Radio.html index f551a2b2..45382f10 100644 --- a/docs/source/Radio.html +++ b/docs/source/Radio.html @@ -1,11 +1,18 @@ - -
-/** + + + ++ \ No newline at end of fileThe source code + + + + +/*! + * Ext JS Library 3.2.1 + * Copyright(c) 2006-2010 Ext JS, Inc. + * licensing@extjs.com + * http://www.extjs.com/license + */ +/** * @class Ext.form.Radio * @extends Ext.form.Checkbox * Single radio field. Same as Checkbox, but provided as a convenience for automatically setting the input type. @@ -62,7 +69,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); @@ -70,7 +77,7 @@ Ext.form.Radio = Ext.extend(Ext.form.Checkbox, { } return this; }, - + // private getCheckEl: function(){ if(this.inGroup){ @@ -80,6 +87,6 @@ Ext.form.Radio = Ext.extend(Ext.form.Checkbox, { } }); Ext.reg('radio', Ext.form.Radio); -- +