diff --git a/includes/ajax.inc b/includes/ajax.inc
index 05416af..10f8c6c 100644
--- a/includes/ajax.inc
+++ b/includes/ajax.inc
@@ -601,7 +601,7 @@ function ctools_ajax_page_preprocess(&$variables) {
$loaded = array('CToolsAJAX' => array('scripts' => $js_files, 'css' => $css_files));
$embed_prefix = "\n\n";
- $variables['closure'].= '\n";
+ $variables['closure'].= '\n";
}
/**
diff --git a/js/ajax-responder.js b/js/ajax-responder.js
index c8733ca..ad94e56 100644
--- a/js/ajax-responder.js
+++ b/js/ajax-responder.js
@@ -443,7 +443,7 @@
};
Drupal.CTools.AJAX.commands.settings = function(data) {
- $.extend(Drupal.settings, data.argument);
+ $.extend(true, Drupal.settings, data.argument);
};
Drupal.CTools.AJAX.commands.scripts = function(data) {