Index: drupal.js =================================================================== --- drupal.js (revision 24826) +++ drupal.js (revision 28948) @@ -12,8 +12,8 @@ */ Drupal.extend = function(obj) { for (var i in obj) { - if (this[i]) { - Drupal.extend.apply(this[i], [obj[i]]); + if (this[i] && (typeof(this[i]) == 'function' || typeof(this[i]) == 'object')) { + Drupal.extend.apply(this[i], [obj[i]]); } else { this[i] = obj[i];