summaryrefslogtreecommitdiff
path: root/misc/drupal.js
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-10-27 04:12:39 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-10-27 04:12:39 +0000
commit0e05035b7104baa80614eefab90b6d90996ca3dc (patch)
treead6180c49c429e48e5d191077aa0b8de0fabb1eb /misc/drupal.js
parentca7b56e7351a7fe57d2c1d4c6feef44e2879caf0 (diff)
downloadbrdo-0e05035b7104baa80614eefab90b6d90996ca3dc.tar.gz
brdo-0e05035b7104baa80614eefab90b6d90996ca3dc.tar.bz2
#610204 by effulgentsia, Gábor Hojtsy, sun, Damien Tournoud and ksenzee: API changes to support overlays: lays ground work for implementation.
Diffstat (limited to 'misc/drupal.js')
-rw-r--r--misc/drupal.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/misc/drupal.js b/misc/drupal.js
index ea688a499..87a5972c6 100644
--- a/misc/drupal.js
+++ b/misc/drupal.js
@@ -344,4 +344,15 @@ Drupal.theme.prototype = {
}
};
+/**
+ * Return whether the given variable is an object.
+ *
+ * The HEAD version of jQuery (http://code.jquery.com/jquery-nightly.js)
+ * includes an isObject() function, so when that gets released and incorporated
+ * into Drupal, this can be removed.
+ */
+$.extend({isObject: function(value) {
+ return (value !== null && typeof value === 'object');
+}});
+
})(jQuery);