Index: /CKEditor/trunk/_source/plugins/scayt/dialogs/options.js
===================================================================
--- /CKEditor/trunk/_source/plugins/scayt/dialogs/options.js	(revision 3572)
+++ /CKEditor/trunk/_source/plugins/scayt/dialogs/options.js	(revision 3573)
@@ -9,5 +9,5 @@
 		captions,
 		doc = CKEDITOR.document,
-		fckLang = "en";
+		fckLang = 'en';
 
 	var init_with_captions = function()
@@ -16,5 +16,6 @@
 			lang_list = dialog.data.scayt.getLangList(),
 			buttons = [ 'dic_create','dic_delete','dic_rename','dic_restore' ],
-			labels = [ 'mixedCase','mixedWithDigits','allCaps','ignoreDomainNames' ];
+			labels = [ 'mixedCase','mixedWithDigits','allCaps','ignoreDomainNames' ],
+			i;
 
 /*
@@ -23,23 +24,23 @@
 		{
 			var button = buttons[ i ];
-			doc.getById( button ).setHtml( captions[ "button_" + button] );
+			doc.getById( button ).setHtml( captions[ 'button_' + button] );
 		}
-		doc.getById( "dic_info" ).setHtml( captions[ "dic_info" ] );
+		doc.getById( 'dic_info' ).setHtml( captions[ 'dic_info' ] );
 */
 
 		// Fill options and dictionary labels.
-		for ( var i in labels )
-		{
-			var label = "label_" + labels[ i ];
-			var labelElement = doc.getById( label );
+		for ( i in labels )
+		{
+			var label = 'label_' + labels[ i ],
+				labelElement = doc.getById( label );
 			if ( labelElement )
 				labelElement.setHtml( captions[ label ] );
 		}
 		
-		var about = '<p>' + captions[ "about_throwt_image" ] + '</p>'+
-					'<p>' + captions[ "version" ]  + dialog.data.scayt.version.toString() + '</p>' +
-					'<p>' + captions[ "about_throwt_copy" ] + '</p>';
-
-		doc.getById( "scayt_about" ).setHtml( about );
+		var about = '<p>' + captions[ 'about_throwt_image' ] + '</p>'+
+					'<p>' + captions[ 'version' ]  + dialog.data.scayt.version.toString() + '</p>' +
+					'<p>' + captions[ 'about_throwt_copy' ] + '</p>';
+
+		doc.getById( 'scayt_about' ).setHtml( about );
 
 		// Create languages tab.
@@ -54,5 +55,5 @@
 
 			var div = doc.createElement( 'div' );
-				radio = CKEDITOR.dom.element.createFromHtml( '<input id="cke_option' + 
+			var radio = CKEDITOR.dom.element.createFromHtml( '<input id="cke_option' + 
 					option + '" type="radio" ' + 
 					( dialog.sLang == option ? 'checked="checked"' : '' ) +
@@ -72,13 +73,13 @@
 				code : option,
 				radio : div
-			}
+			};
 		};
 
 		var langList = [];
-		for ( var i in lang_list.rtl )
-			langList[ langList.length ] = createOption( i, lang_list.ltr )
-
-		for ( var i in lang_list.ltr )
-			langList[ langList.length  ] = createOption( i, lang_list.ltr )
+		for ( i in lang_list.rtl )
+			langList[ langList.length ] = createOption( i, lang_list.ltr );
+
+		for ( i in lang_list.ltr )
+			langList[ langList.length  ] = createOption( i, lang_list.ltr );
 
 		langList.sort( 	function( lang1, lang2 )
@@ -89,5 +90,5 @@
 		var fieldL = doc.getById( 'scayt_lcol' ),
 			fieldR = doc.getById( 'scayt_rcol' );
-		for ( var i=0; i < langList.length; i++ )
+		for ( i=0; i < langList.length; i++ )
 		{
 			var field = ( i < langList.length / 2 ) ? fieldL : fieldR;
@@ -107,5 +108,5 @@
 				checkbox.removeAttribute( 'checked' );
 				if ( dialog.options[ i ] == 1 )
-					checkbox.setAttribute( 'checked', "checked" );
+					checkbox.setAttribute( 'checked', 'checked' );
 
 				// Bind events. Do it only once.
@@ -115,5 +116,5 @@
 						{
 							dialog.options[ this.getId() ] = this.$.checked ? 1 : 0 ;
-						} )
+						} );
 				}
 			}
@@ -123,7 +124,7 @@
 		var dic_buttons = [
 			// [0] contains buttons for creating
-			"dic_create,dic_restore",
+			'dic_create,dic_restore',
 			// [1] contains buton for manipulation 
-			"dic_rename,dic_delete,dic_restore"
+			'dic_rename,dic_delete,dic_restore'
 		];
 		scayt.getNameUserDictionary(
@@ -145,5 +146,5 @@
 		var dic_flag = 0; 
 		 // ** bind event listeners
-		dojo.query("div.dic_buttons a.button").onclick(function( ev )
+		dojo.query('div.dic_buttons a.button').onclick(function( ev )
 			{
 				if (typeof window[this.id] == 'function'  ){
@@ -156,5 +157,5 @@
 						return false;
 					}
-					//apply handler
+					// Apply handler
 					window[this.id].apply( window, [this,ev , dic_name, dic_buttons ] );
 				}
@@ -171,5 +172,5 @@
 		   {
 				var dialog = this;
-				dialog.data = editor.fire( "scaytDialog", {} );
+				dialog.data = editor.fire( 'scaytDialog', {} );
 				dialog.options = dialog.data.scayt_control.option();
 				dialog.sLang = dialog.data.scayt_control.sLang;
@@ -177,5 +178,5 @@
 				if ( !dialog.data || !dialog.data.scayt || !dialog.data.scayt_control ) 
 				{
-					alert( "Error loading application service" );
+					alert( 'Error loading application service' );
 					dialog.hide();
 					return;
@@ -202,9 +203,9 @@
 			onOk : function()
 			{
-				var scayt_control =  this.data.scayt_control;
-					o = scayt_control.option();
+				var scayt_control =  this.data.scayt_control,
+					o = scayt_control.option(),
 					c = 0;
 
-				// Set upp options if any was set.
+				// Set up options if any was set.
 				for ( var oN in this.options ) 
 				{
@@ -304,5 +305,5 @@
 							type : 'html',
 							id : 'about',
-							style : "margin: 10px 40px;",
+							style : 'margin: 10px 40px;',
 							html : '<div id="scayt_about"></div>'
 						}
Index: /CKEditor/trunk/_source/plugins/scayt/plugin.js
===================================================================
--- /CKEditor/trunk/_source/plugins/scayt/plugin.js	(revision 3572)
+++ /CKEditor/trunk/_source/plugins/scayt/plugin.js	(revision 3573)
@@ -11,6 +11,6 @@
 (function()
 {
-	var commandName 	= "scaytcheck",
-		sc_on_cssclass 	= "scayt_enabled",
+	var commandName 	= 'scaytcheck',
+		sc_on_cssclass 	= 'scayt_enabled',
 		sc_off_cssclass = 'scayt_disabled',
 		openPage		= '';
@@ -19,7 +19,7 @@
 	{
 		var editor = this;
-		dojo.requireLocalization( 'scayt', 'caption', '', "ROOT" );
-
-		var createInstnce = function()	// Create new instance every time Document is created.
+		dojo.requireLocalization( 'scayt', 'caption', '', 'ROOT' );
+
+		var createInstance = function()	// Create new instance every time Document is created.
 		{
 			// Initialise Scayt instance.
@@ -30,5 +30,5 @@
 
 			// Copy config.
-			var	lastInstance = plugin.instances[ editor.name ]
+			var	lastInstance = plugin.instances[ editor.name ];
 			if ( lastInstance )
 			{
@@ -41,9 +41,9 @@
 
 			try {
-				scayt_control.setDisabled( scayt_control.paused === false );				// I really don't know why it couse JS error in IE
+				scayt_control.setDisabled( scayt_control.paused === false );				// I really don't know why it causes JS error in IE
 			} catch (e) {}
 		};
 
-		editor.on( 'contentDom', createInstnce )		// Get the iframe somehow.
+		editor.on( 'contentDom', createInstance );		// Get the iframe somehow.
 		editor.on( 'contentDomUnload', function()
 			{
@@ -62,5 +62,5 @@
 						script.remove();
 				}
-			})
+			});
 
 		editor.on( 'beforeCommandExec', function( ev )		// Disable SCAYT before Source command execution.
@@ -68,5 +68,5 @@
 				if ( ev.data.name == 'source' && editor.mode == 'wysiwyg' )
 				{
-					var scayt = plugin.getScayt( editor )
+					var scayt = plugin.getScayt( editor );
 					if ( scayt )
 					{
@@ -100,5 +100,5 @@
 		if ( editor.document )
 		{
-			createInstnce();
+			createInstance();
 			editor.fire( 'showScaytState' );
 		}
@@ -129,8 +129,8 @@
 				return onEngineLoad.apply( editor );	// Add new instance.
 			else if ( this.engineLoaded == -1 )			// We are waiting.
-				return CKEDITOR.on( "scaytReady", function(){ onEngineLoad.apply( editor )} );	// Use function(){} to avoid rejection as duplicate.
-
-			CKEDITOR.on( "scaytReady", onEngineLoad, editor );
-			CKEDITOR.on( "scaytReady", function()
+				return CKEDITOR.on( 'scaytReady', function(){ onEngineLoad.apply( editor );} );	// Use function(){} to avoid rejection as duplicate.
+
+			CKEDITOR.on( 'scaytReady', onEngineLoad, editor );
+			CKEDITOR.on( 'scaytReady', function()
 				{
 					this.engineLoaded = true;
@@ -143,6 +143,6 @@
 			djConfig = 
 			{
-				baseUrl: "./",
-				blankGif: "http://demo.spellchecker.net/spellcheck3/lf/scayt/blank.gif",
+				baseUrl: './',
+				blankGif: 'http://demo.spellchecker.net/spellcheck3/lf/scayt/blank.gif',
 				parseOnLoad: true,
 				afterOnLoad: true,
@@ -153,10 +153,10 @@
 				scaytNodes: document.getElementById('foo'),
 				require: [
-					"dojo.i18n",
-					"scayt._base"
+					'dojo.i18n',
+					'scayt._base'
 				],
 				modulePaths:
 				{
-					"scayt": "http://demo.spellchecker.net/spellcheck3/lf/scayt"
+					'scayt': 'http://demo.spellchecker.net/spellcheck3/lf/scayt'
 				},
 				addOnLoad: 
@@ -164,5 +164,5 @@
 					function()
 					{
-						CKEDITOR.fireOnce( "scaytReady" );
+						CKEDITOR.fireOnce( 'scaytReady' );
 					}
 				],
@@ -170,5 +170,5 @@
 			};
 
-			// Append javascrip code.
+			// Append javascript code.
 			CKEDITOR.document.getHead().append( 
 				CKEDITOR.document.createElement( 'script',
@@ -177,5 +177,5 @@
 							{
 								type : 'text/javascript',
-								src : "http://demo.spellchecker.net/spellcheck3/lf/dojo/dojo/dojo.xd.js"
+								src : 'http://demo.spellchecker.net/spellcheck3/lf/dojo/dojo/dojo.xd.js'
 							}
 					})
@@ -299,5 +299,5 @@
 				});
 
-			editor.ui.add( "Scayt", CKEDITOR.UI_MENUBUTTON,
+			editor.ui.add( 'Scayt', CKEDITOR.UI_MENUBUTTON,
 				{
 					label : editor.lang.scayt.title,
@@ -359,5 +359,5 @@
 						mainSuggestions = {};
 
-						// Rgister the More suggestions group;
+						// Register the More suggestions group;
 						editor.addMenuItem( 'scayt_moresuggest',
 							{
@@ -373,5 +373,5 @@
 						for ( var i = 0, l = items_suggestion.length; i < l; i += 1 )
 						{
-							var commandName = 'scayt_suggestion_' + items_suggestion[i].replace( " ", "_" );
+							var commandName = 'scayt_suggestion_' + items_suggestion[i].replace( ' ', '_' );
 							var exec = ( function( el, s )
 								{
@@ -386,5 +386,5 @@
 							if ( i < editor.config.scayt_maxSuggestions )
 							{
-								addButtonCommand( editor, "button_" + commandName, items_suggestion[i], 
+								addButtonCommand( editor, 'button_' + commandName, items_suggestion[i], 
 									commandName, exec, 'scayt_suggest', i + 1 );
 								_r[ commandName ] = CKEDITOR.TRISTATE_OFF;
@@ -393,5 +393,5 @@
 							else
 							{
-								addButtonCommand( editor, "button_" + commandName, items_suggestion[i], 
+								addButtonCommand( editor, 'button_' + commandName, items_suggestion[i], 
 									commandName, exec, 'scayt_moresuggest', i + 1 );
 								moreSuggestions[ commandName ] = CKEDITOR.TRISTATE_OFF;
@@ -421,9 +421,9 @@
 						};
 
-						addButtonCommand( editor, "ignore", editor.lang.scayt.ignore, 
+						addButtonCommand( editor, 'ignore', editor.lang.scayt.ignore, 
 							'scayt_ignore', ignore_command, 'scayt_control', 1);
-						addButtonCommand( editor, "ignore_all", editor.lang.scayt.ignoreAll, 
+						addButtonCommand( editor, 'ignore_all', editor.lang.scayt.ignoreAll, 
 							'scayt_ignore_all', ignore_all_command, 'scayt_control', 2);
-						addButtonCommand( editor, "add_word", editor.lang.scayt.addWord, 
+						addButtonCommand( editor, 'add_word', editor.lang.scayt.addWord, 
 							'scayt_add_word', addword_command, 'scayt_control', 3);
 
