JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.2.1
[ckeditor.git] / _source / plugins / scayt / dialogs / options.js
index 2d5c5ab..c68b8cf 100644 (file)
@@ -213,9 +213,9 @@ CKEDITOR.dialog.add( 'scaytcheck', function( editor )
                        i;\r
 \r
                // Add buttons titles\r
-               if (userDicActive)\r
+               if ( userDicActive )\r
                {\r
-                       for ( i in buttons )\r
+                       for ( i = 0; i < buttons.length; i++ )\r
                        {\r
                                var button = buttons[ i ];\r
                                doc.getById( button ).setHtml( '<span class="cke_dialog_ui_button">' + captions[ 'button_' + button]  +'</span>' );\r
@@ -225,7 +225,7 @@ CKEDITOR.dialog.add( 'scaytcheck', function( editor )
 \r
 \r
                // Fill options and dictionary labels.\r
-               if (tags[0] == 1)\r
+               if ( tags[0] == 1 )\r
                {\r
                        for ( i in labels )\r
                        {\r