=== modified file 'install.php' --- install.php 2009-04-04 00:35:45 +0000 +++ install.php 2009-04-24 21:17:48 +0000 @@ -728,13 +728,7 @@ // We add these strings as settings because JavaScript translation does not // work on install time. drupal_add_js(array('copyFieldValue' => array('edit-site-mail' => array('edit-account-mail'))), 'setting'); - drupal_add_js(' -// Global Killswitch -if (Drupal.jsEnabled) { - jQuery(document).ready(function() { - Drupal.cleanURLsInstallCheck(); - }); -}', 'inline'); + drupal_add_js('jQuery(function() { Drupal.cleanURLsInstallCheck(); });', 'inline'); // Build menu to allow clean URL check. menu_rebuild(); === modified file 'misc/drupal.js' --- misc/drupal.js 2009-03-13 23:15:08 +0000 +++ misc/drupal.js 2009-04-24 21:21:17 +0000 @@ -16,11 +16,6 @@ (function($) { /** - * Set the variable that indicates if JavaScript behaviors should be applied. - */ -Drupal.jsEnabled = document.getElementsByTagName && document.createElement && document.createTextNode && document.documentElement && document.getElementById; - -/** * Attach all registered behaviors to a page element. * * Behaviors are event-triggered actions that attach to page elements, enhancing @@ -317,17 +312,16 @@ return message.replace(/\n/g, '
'); }; -// Global Killswitch on the element. -if (Drupal.jsEnabled) { - // Global Killswitch on the element. - $(document.documentElement).addClass('js'); - // 'js enabled' cookie. - document.cookie = 'has_js=1; path=/'; - // Attach all behaviors. - $(document).ready(function() { - Drupal.attachBehaviors(this, Drupal.settings); - }); -} +// Class indicating that JS is enabled; used for styling purpose. +$('html').addClass('js'); + +// 'js enabled' cookie. +document.cookie = 'has_js=1; path=/'; + +// Attach all behaviors. +$(function() { + Drupal.attachBehaviors(document, Drupal.settings); +}); /** * The default themes.