Index: /FCKeditor/branches/features/floating_dialog/editor/fckdialog.html
===================================================================
--- /FCKeditor/branches/features/floating_dialog/editor/fckdialog.html	(revision 1267)
+++ /FCKeditor/branches/features/floating_dialog/editor/fckdialog.html	(revision 1268)
@@ -232,10 +232,17 @@
 var Throbber = function()
 {
-	var retval = {
+	var timer = null ;
+	FCKTools.AddEventListener( window, 'beforeunload', function()
+		{
+			if ( timer )
+				clearTimeout( timer ) ;
+		} ) ;
+
+	return {
 		Show : function( waitMilliseconds )
 		{
 			if ( waitMilliseconds && waitMilliseconds > 0 )
 			{
-				this.Timer = FCKTools.SetTimeout( this.Show, waitMilliseconds, this, null, window ) ;
+				timer = FCKTools.SetTimeout( this.Show, waitMilliseconds, this, null, window ) ;
 				return ;
 			}
@@ -251,11 +258,11 @@
 			throbberParent.style.top = parseInt( y, 10 ) + 'px' ;
 
-			this.Timer = null ;
+			timer = null ;
 		},
 
 		Hide : function()
 		{
-			if ( this.Timer )
-				clearTimeout( this.Timer ) ;
+			if ( timer )
+				clearTimeout( timer ) ;
 
 			var throbberParent = document.getElementById( 'throbberBlock' ) ;
@@ -263,13 +270,5 @@
 				FCKDomTools.RemoveNode( throbberParent ) ;
 		}
-	}
-	
-	FCKTools.AddEventListener( window, 'beforeunload', function()
-		{
-			if ( retval.Timer )
-				clearTimeout( retval.Timer ) ;
-		} ) ;
-
-	return retval ;
+	} ;
 }() ;
 
