#335741 by electricmonk. Do not recurse over non-objects.
parent
d33a7a8fc5
commit
b7715b93ff
|
@ -12,8 +12,8 @@ Drupal.jsEnabled = document.getElementsByTagName && document.createElement && do
|
|||
*/
|
||||
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];
|
||||
|
|
Loading…
Reference in New Issue