diff --git a/core/includes/common.inc b/core/includes/common.inc index c6c8e1a..d7e9c38 100644 --- a/core/includes/common.inc +++ b/core/includes/common.inc @@ -3900,14 +3900,14 @@ function drupal_get_js($scope = 'header', $javascript = NULL, $skip_alter = FALS } } - // Don't add those settings if there is no other JS on the page. + // Don't add settings if there is no other JS on the page. if (!empty($items) && array_keys($items) != array('settings')) { - // Sort the JavaScript so that it appears in the correct order. + // Sort the JavaScript files so that they appear in the correct order. uasort($items, 'drupal_sort_css_js'); global $theme_key; // Provide the page with information about the theme that's used, so that a - // later Ajax request can be rendered using the same theme. + // later AJAX request can be rendered using the same theme. // @see ajax_base_page_theme() $setting['ajaxPageState']['theme'] = $theme_key; // Checks that the DB is available before filling theme_token. @@ -3925,7 +3925,7 @@ function drupal_get_js($scope = 'header', $javascript = NULL, $skip_alter = FALS // setting is attached later in this function, but is set here, so that CSS // files removed below are still considered "used" and prevented from being // added in a later AJAX request. - // Skip if no files were added to the page or jQuery.extend() will overwrite + // Skip if no files were added to the page otherwise jQuery.extend() will overwrite // the Drupal.settings.ajaxPageState.css object with an empty array. $css = drupal_add_css(); if (!empty($css)) { @@ -3936,7 +3936,7 @@ function drupal_get_js($scope = 'header', $javascript = NULL, $skip_alter = FALS drupal_add_js($setting, 'setting'); // If we're outputting the header scope, then this might be the final time - // that drupal_get_js() is running, so add the setting to this output as well + // that drupal_get_js() is running, so add the settings to this output as well // as to the drupal_add_js() cache. If $items['settings'] doesn't exist, it's // because drupal_get_js() was intentionally passed a $javascript argument // stripped of settings, potentially in order to override how settings get diff --git a/core/modules/color/color.module b/core/modules/color/color.module index fc72015..fb243ba 100644 --- a/core/modules/color/color.module +++ b/core/modules/color/color.module @@ -244,7 +244,7 @@ function theme_color_scheme_form($variables) { $path = drupal_get_path('theme', $theme) . '/'; drupal_add_css($path . $info['preview_css']); - // TODO transform to add library + // @todo Transform to add library. $preview_js_path = isset($info['preview_js']) ? $path . $info['preview_js'] : drupal_get_path('module', 'color') . '/' . 'preview.js'; // Add the JS at a weight below color.js. drupal_add_js($preview_js_path, array('weight' => -1));