- #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.
|
* Only enable Javascript functionality if all required features are supported.
|
||||||
*/
|
*/
|
||||||
function isJsEnabled() {
|
function isJsEnabled() {
|
||||||
if (document.jsEnabled == undefined) {
|
if (typeof document.jsEnabled == 'undefined') {
|
||||||
// Note: ! casts to boolean implicitly.
|
// Note: ! casts to boolean implicitly.
|
||||||
document.jsEnabled = !(
|
document.jsEnabled = !(
|
||||||
!document.getElementsByTagName ||
|
!document.getElementsByTagName ||
|
||||||
|
|
Loading…
Reference in New Issue