summaryrefslogtreecommitdiff
path: root/misc/drupal.js
diff options
context:
space:
mode:
Diffstat (limited to 'misc/drupal.js')
-rw-r--r--misc/drupal.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/misc/drupal.js b/misc/drupal.js
index 4fd536463..6fb336b56 100644
--- a/misc/drupal.js
+++ b/misc/drupal.js
@@ -21,6 +21,19 @@ if (isJsEnabled()) {
document.documentElement.className = 'js';
}
+Drupal = { };
+
+Drupal.extend = function(obj) {
+ for (var i in obj) {
+ if (this[i]) {
+ Drupal.extend.apply(this[i], [obj[i]]);
+ }
+ else {
+ this[i] = obj[i];
+ }
+ }
+}
+
/**
* Make IE's XMLHTTP object accessible through XMLHttpRequest()
*/