Index: /CKEditor/branches/prototype/_source/plugins/dialog/plugin.js
===================================================================
--- /CKEditor/branches/prototype/_source/plugins/dialog/plugin.js	(revision 2446)
+++ /CKEditor/branches/prototype/_source/plugins/dialog/plugin.js	(revision 2447)
@@ -33,5 +33,5 @@
 
 	// Load the dialog definition.
-	var definition = CKEDITOR.dialog.dialogDefinitions[dialogName];
+	var definition = CKEDITOR.dialog._.dialogDefinitions[dialogName];
 	if ( typeof( definition ) != 'function' )
 	{
@@ -256,5 +256,5 @@
 		add: function( name, callback )
 		{
-			this.dialogDefinitions[name] = callback;
+			this._.dialogDefinitions[name] = callback;
 		},
 
@@ -266,56 +266,4 @@
 		{
 			this._.uiElementBuilders[typeName] = builder;
-		},
-
-		dialogDefinitions : {
-			testOnly : function()
-			{
-				return {
-					title : 'Test Dialog',
-					resizable : CKEDITOR.DIALOG_RESIZE_NONE,
-					minWidth : 500,
-					minHeight : 400,
-					contents : [
-						{
-							id : 'tab1',
-							label : 'First Tab',
-							title : 'First Tab Title',
-							accessKey : 'Q',
-							elements : [
-								{
-									type : 'hbox',
-									children : []
-								}
-							]
-						},
-
-						{
-							id : 'tab2',
-							label : 'Second Tab',
-							title : 'Second Tab Title',
-							accessKey : 'W',
-							elements : [
-								{
-									type : 'hbox',
-									children : []
-								}
-							]
-						},
-
-						{
-							id : 'tab3',
-							label : 'Third Tab',
-							title : 'Third Tab Title',
-							accessKey : 'E',
-							elements : [
-								{
-									type : 'hbox',
-									children : []
-								}
-							]
-						}
-					]
-				};
-			}
 		},
 
@@ -336,4 +284,56 @@
 
 	uiElementBuilders : {},
+
+	dialogDefinitions : {
+		testOnly : function()
+		{
+			return {
+				title : 'Test Dialog',
+				resizable : CKEDITOR.DIALOG_RESIZE_NONE,
+				minWidth : 500,
+				minHeight : 400,
+				contents : [
+					{
+						id : 'tab1',
+						label : 'First Tab',
+						title : 'First Tab Title',
+						accessKey : 'Q',
+						elements : [
+							{
+								type : 'hbox',
+								children : []
+							}
+						]
+					},
+
+					{
+						id : 'tab2',
+						label : 'Second Tab',
+						title : 'Second Tab Title',
+						accessKey : 'W',
+						elements : [
+							{
+								type : 'hbox',
+								children : []
+							}
+						]
+					},
+
+					{
+						id : 'tab3',
+						label : 'Third Tab',
+						title : 'Third Tab Title',
+						accessKey : 'E',
+						elements : [
+							{
+								type : 'hbox',
+								children : []
+							}
+						]
+					}
+				]
+			};
+		}
+	}
 };
 
