Index: wysiwyg.js
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/wysiwyg/wysiwyg.js,v
retrieving revision 1.13
diff -u -p -r1.13 wysiwyg.js
--- wysiwyg.js	29 Mar 2009 06:38:26 -0000	1.13
+++ wysiwyg.js	4 Jun 2009 13:17:36 -0000
@@ -14,7 +14,7 @@ Drupal.wysiwygInit = function() {
 
   jQuery.each(Drupal.wysiwyg.editor.init, function(editor) {
     // Clone, so original settings are not overwritten.
-    this(Drupal.wysiwyg.clone(Drupal.settings.wysiwyg.configs[editor]));
+    this(jQuery.extend(true, {}, Drupal.settings.wysiwyg.configs[editor]));
   });
 };
 
@@ -100,7 +100,7 @@ Drupal.wysiwygAttach = function(context,
     Drupal.wysiwygAttachToggleLink(context, params);
     // Attach editor, if enabled by default or last state was enabled.
     if (params.status) {
-      Drupal.wysiwyg.editor.attach[params.editor](context, params, (Drupal.settings.wysiwyg.configs[params.editor] ? Drupal.wysiwyg.clone(Drupal.settings.wysiwyg.configs[params.editor][params.format]) : {}));
+      Drupal.wysiwyg.editor.attach[params.editor](context, params, (Drupal.settings.wysiwyg.configs[params.editor] ? jQuery.extend(true, {}, Drupal.settings.wysiwyg.configs[params.editor][params.format]) : {}));
     }
     // Otherwise, attach default behaviors.
     else {
@@ -199,28 +199,6 @@ Drupal.wysiwyg.getParams = function(elem
 };
 
 /**
- * Clone a configuration object recursively.
- *
- * @param obj
- *   The object to clone.
- *
- * @return
- *   A copy of the passed in object.
- */
-Drupal.wysiwyg.clone = function(obj) {
-  var clone = {};
-  for (var i in obj) {
-    if ((typeof obj[i] == 'object') || (typeof obj[i] == 'array')) {
-      clone[i] = Drupal.wysiwyg.clone(obj[i]);
-    }
-    else {
-      clone[i] = obj[i];
-    }
-  }
-  return clone;
-};
-
-/**
  * Allow certain editor libraries to initialize before the DOM is loaded.
  */
 Drupal.wysiwygInit();
