- #24068: Fix "undefined is undefined" error in IE5 with drupal.js
parent
1a3f0ddb86
commit
cb5b2f332c
|
@ -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 ||
|
||||
|
|
Loading…
Reference in New Issue