super.init();
_lzrbcontroller.addRadioButton(this);
// Call onselected if we selected this radiobutton very early and
// didn't send one before.
if (this._sendonselected) {
this.onselected.sendEvent(this.selected);
}
this._select(true);
if (this['selected'] == s) return;
this.selected = s;
// This ensures we send onselected event even if we select
// radiobutton early, i.e., before it's fully inited.
if (! this.isinited) {
this._sendonselected = true;
return;
}
// If we send event before init, make sure we don't send it during
// init.
this._sendonselected = false;
if (s) this.group.setValue( this.value );
if (this.onselected) this.onselected.sendEvent(s);
if (this['_applystyle']) {
this._applystyle(this.style);
}