Index: /CKEditor/trunk/_source/plugins/dialog/plugin.js
===================================================================
--- /CKEditor/trunk/_source/plugins/dialog/plugin.js	(revision 3299)
+++ /CKEditor/trunk/_source/plugins/dialog/plugin.js	(revision 3300)
@@ -633,4 +633,6 @@
 		hide : function()
 		{
+			this.fire( 'hide', {} );
+			
 			// Remove the dialog's element from the root document.
 			var element = this._.element;
@@ -668,5 +670,4 @@
 				CKEDITOR.dialog._.currentZIndex -= 10;
 
-			this.fire( 'hide', {} );
 
 			// Reset the initial values of the dialog.
