- #24068: Fix "undefined is undefined" error in IE5 with drupal.js

4.7.x
Steven Wittens 2005-06-01 17:43:33 +00:00
parent 1a3f0ddb86
commit cb5b2f332c
1 changed files with 1 additions and 1 deletions

View File

@ -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 ||