From cb5b2f332cbdaadcc2802bd76b190d1b77b0b51b Mon Sep 17 00:00:00 2001 From: Steven Wittens Date: Wed, 1 Jun 2005 17:43:33 +0000 Subject: [PATCH] - #24068: Fix "undefined is undefined" error in IE5 with drupal.js --- misc/drupal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/drupal.js b/misc/drupal.js index 02ea60493be..7a726c2a818 100644 --- a/misc/drupal.js +++ b/misc/drupal.js @@ -2,7 +2,7 @@ * Only enable Javascript functionality if all required features are supported. */ function isJsEnabled() { - if (document.jsEnabled == undefined) { + if (typeof document.jsEnabled == 'undefined') { // Note: ! casts to boolean implicitly. document.jsEnabled = !( !document.getElementsByTagName ||