Index: /CKEditor/branches/prototype/_source/plugins/horizontalrule/plugin.js
===================================================================
--- /CKEditor/branches/prototype/_source/plugins/horizontalrule/plugin.js	(revision 2992)
+++ /CKEditor/branches/prototype/_source/plugins/horizontalrule/plugin.js	(revision 2993)
@@ -8,26 +8,28 @@
  */
 
-// Register a plugin named "horizontalrule".
-CKEDITOR.plugins.add( 'horizontalrule',
+(function()
 {
-	init : function( editor, pluginPath )
+	var horizontalruleCmd =
 	{
-		var horizontalrule = CKEDITOR.plugins.horizontalrule;
+		exec : function( editor )
+		{
+			editor.insertElement( editor.document.createElement( 'hr' ) );
+		}
+	};
+	
+	var pluginName = 'horizontalrule';
 
-		editor.addCommand( 'horizontalrule', horizontalrule );
-		editor.ui.addButton( 'HorizontalRule',
-			{
-				label : editor.lang.horizontalrule,
-				command : 'horizontalrule'
-			});
-	}
-});
-
-CKEDITOR.plugins.horizontalrule =
-{
-	exec : function( editor )
+	// Register a plugin named "horizontalrule".
+	CKEDITOR.plugins.add( pluginName,
 	{
-		var element = editor.document.createElement('hr');
-		editor.insertElement( element );
-	}
-};
+		init : function( editor, pluginPath )
+		{
+			editor.addCommand( pluginName, horizontalruleCmd );
+			editor.ui.addButton( 'HorizontalRule',
+				{
+					label : editor.lang.horizontalrule,
+					command : pluginName
+				});
+		}
+	});
+})();
