FML/Script/Features/RadioButtonGroupFeature.php
protected function prepareRadioButtonClickScript(Script $script)
    {
        $script->appendGenericScriptLabel(ScriptLabel::MOUSECLICK2, "
if (" . $this->getRadioButtonIdsConstantName() . ".exists(Event.ControlId)) {
	declare RadioButtonQuad <=> (Event.Control as CMlQuad);
	declare RadioButtonGroupEntry <=> (Page.GetFirstChild(\"" . Builder::getId($this->entry) . "\") as CMlEntry);
	" . self::FUNCTION_ON_RADIO_BUTTON_CLICK . "(RadioButtonQuad, RadioButtonGroupEntry, " . $this->getRadioButtonIdsConstantName() . ");
}");
        return $this;
    }
protected function prepareRadioButtonClickScript(Script $script)
    {
        $script->appendGenericScriptLabel(ScriptLabel::MOUSECLICK2, "
if (" . $this->getRadioButtonIdsConstantName() . ".exists(Event.ControlId)) {
	declare RadioButtonQuad <=> (Event.Control as CMlQuad);
	declare RadioButtonGroupEntry <=> (Page.GetFirstChild(\"" . Builder::getId($this->entry) . "\") as CMlEntry);
	" . self::FUNCTION_ON_RADIO_BUTTON_CLICK . "(RadioButtonQuad, RadioButtonGroupEntry, " . $this->getRadioButtonIdsConstantName() . ");
}");
        return $this;
    }
protected function prepareRadioButtonClickScript ( Script $ script ) { $ script -> appendGenericScriptLabel ( ScriptLabel :: MOUSECLICK2 , "
if (" . $ this -> getRadioButtonIdsConstantName ( ) . ".exists(Event.ControlId)) {
	declare RadioButtonQuad <=> (Event.Control as CMlQuad);
	declare RadioButtonGroupEntry <=> (Page.GetFirstChild(\"" . Builder :: getId ( $ this -> entry ) . "\") as CMlEntry);
	" . self :: FUNCTION_ON_RADIO_BUTTON_CLICK . "(RadioButtonQuad, RadioButtonGroupEntry, " . $ this -> getRadioButtonIdsConstantName ( ) . ");
}" ) ; return $ this ; }
Prepare the script for RadioButton clicks

@param Script $script Script
@return static
Prepare the script for RadioButton clicks