Index: /CKEditor/branches/prototype/_source/plugins/selection/plugin.js
===================================================================
--- /CKEditor/branches/prototype/_source/plugins/selection/plugin.js	(revision 2637)
+++ /CKEditor/branches/prototype/_source/plugins/selection/plugin.js	(revision 2638)
@@ -97,4 +97,19 @@
 	// #### checkSelectionChange : END
 
+	var selectAllCmd =
+	{
+		exec : function( editor )
+		{
+			switch ( editor.mode )
+			{
+				case 'wysiwyg' :
+					editor.document.$.execCommand( 'SelectAll', false, null );
+					break;
+				case 'source' :
+					// TODO
+			}
+		}
+	};
+
 	CKEDITOR.plugins.add( 'selection',
 	{
@@ -120,18 +135,5 @@
 				});
 
-			editor.addCommand( 'selectAll',
-				{
-					exec : function( editor )
-					{
-						switch ( editor.mode )
-						{
-							case 'wysiwyg' :
-								editor.document.$.execCommand( 'SelectAll', false, null ) ;
-								break;
-							case 'source' :
-						}
-					}
-				});
-
+			editor.addCommand( 'selectAll', selectAllCmd );
 			editor.ui.addButton( 'SelectAll',
 				{
@@ -411,5 +413,5 @@
 
 						return ( this._.cache.ranges = [ range ] );
-					}
+					};
 				})()
 			:
