Index: /CKEditor/trunk/CHANGES.html
===================================================================
--- /CKEditor/trunk/CHANGES.html	(revision 5321)
+++ /CKEditor/trunk/CHANGES.html	(revision 5322)
@@ -117,4 +117,5 @@
 		<li><a href="http://dev.fckeditor.net/ticket/5401">#5401</a> : The context menu break layout with Office2003 and V2 skin on IE quirks mode.</li>
 		<li><a href="http://dev.fckeditor.net/ticket/4825">#4825</a> : Fixing browser context menu is opened when clicking right mouse button twice.</li>
+		<li><a href="http://dev.fckeditor.net/ticket/5356">#5356</a> : The SCAYT dialog had issues with Prototype enabled pages.</li>
 		<li>Updated the following language files:<ul>
 			<li>Faroese;</li>
Index: /CKEditor/trunk/_source/plugins/scayt/dialogs/options.js
===================================================================
--- /CKEditor/trunk/_source/plugins/scayt/dialogs/options.js	(revision 5321)
+++ /CKEditor/trunk/_source/plugins/scayt/dialogs/options.js	(revision 5322)
@@ -214,7 +214,7 @@
 
 		// Add buttons titles
-		if (userDicActive)
-		{
-			for ( i in buttons )
+		if ( userDicActive )
+		{
+			for ( i = 0; i < buttons.length; i++ )
 			{
 				var button = buttons[ i ];
@@ -226,5 +226,5 @@
 
 		// Fill options and dictionary labels.
-		if (tags[0] == 1)
+		if ( tags[0] == 1 )
 		{
 			for ( i in labels )
