Index: /FCKeditor/branches/features/floating_dialog/editor/_source/commandclasses/fcktextcolorcommand.js
===================================================================
--- /FCKeditor/branches/features/floating_dialog/editor/_source/commandclasses/fcktextcolorcommand.js	(revision 1329)
+++ /FCKeditor/branches/features/floating_dialog/editor/_source/commandclasses/fcktextcolorcommand.js	(revision 1330)
@@ -107,5 +107,6 @@
 	this.className = 'ColorDeselected' ;
 	command._Panel.Hide() ;
-	FCKDialog.OpenDialog( 'FCKDialog_Color', FCKLang.DlgColorTitle, 'dialog/fck_colorselector.html', 410, 320, FCKTools.Hitch(command, 'SetColor') ) ;
+	FCKDialog.OpenDialog( 'FCKDialog_Color', FCKLang.DlgColorTitle, 'dialog/fck_colorselector.html', 410, 320, 
+			FCKTools.BindSubject( command, command.SetColor ) ) ;
 }
 
Index: /FCKeditor/branches/features/floating_dialog/editor/_source/internals/fcktools.js
===================================================================
--- /FCKeditor/branches/features/floating_dialog/editor/_source/internals/fcktools.js	(revision 1329)
+++ /FCKeditor/branches/features/floating_dialog/editor/_source/internals/fcktools.js	(revision 1330)
@@ -612,11 +612,9 @@
 
 /**
- * Utility function to wrap a call to an object's method,
- * so it can be passed for example to an event handler,
- * and then it will be executed with 'this' being the object.
- */
-FCKTools.Hitch = function( obj, methodName )
-{
-  return function() { return obj[methodName].apply(obj, arguments); } ;
+ * Utility function for binding the "this" reference to an object for a function.
+ */
+FCKTools.BindSubject = function( subject, func )
+{
+  return function(){ return func.apply( subject, arguments ) ; } ;
 }
 
Index: /FCKeditor/branches/features/floating_dialog/editor/fckdialog.html
===================================================================
--- /FCKeditor/branches/features/floating_dialog/editor/fckdialog.html	(revision 1329)
+++ /FCKeditor/branches/features/floating_dialog/editor/fckdialog.html	(revision 1330)
@@ -206,5 +206,5 @@
 	}
 
-	window.SetAutoSize = FCKTools.Hitch( retval, 'SetAutoSize' );
+	window.SetAutoSize = FCKTools.BindSubject( retval, retval.SetAutoSize ) ;
 	return retval ;
 }() ;
