X-Git-Url: https://jasonwoof.com/gitweb/?p=ckeditor.git;a=blobdiff_plain;f=_source%2Fplugins%2Fscayt%2Fdialogs%2Foptions.js;h=2d5c5abc7a53e740cee297ea04d1226dcbac276f;hp=feb3f0e91fb069a3f7d10837a35ee39a629579b4;hb=c6e377a02b54abc07129d72b632763c727476a15;hpb=941b0a9ba4e673e292510d80a5a86806994b8ea6 diff --git a/_source/plugins/scayt/dialogs/options.js b/_source/plugins/scayt/dialogs/options.js index feb3f0e..2d5c5ab 100644 --- a/_source/plugins/scayt/dialogs/options.js +++ b/_source/plugins/scayt/dialogs/options.js @@ -30,16 +30,16 @@ CKEDITOR.dialog.add( 'scaytcheck', function( editor ) } function setCheckedValue(radioObj, newValue) { - if(!radioObj) + if (!radioObj) return; var radioLength = radioObj.length; - if(radioLength == undefined) { + if (radioLength == undefined) { radioObj.checked = (radioObj.value == newValue.toString()); return; } - for(var i = 0; i < radioLength; i++) { + for (var i = 0; i < radioLength; i++) { radioObj[i].checked = false; - if(radioObj[i].value == newValue.toString()) { + if (radioObj[i].value == newValue.toString()) { radioObj[i].checked = true; } }