diff --git a/core/modules/color/color.module b/core/modules/color/color.module index 7660d6b..f013572 100644 --- a/core/modules/color/color.module +++ b/core/modules/color/color.module @@ -246,7 +246,7 @@ function template_preprocess_color_scheme_form(&$variables) { // @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)); + drupal_add_js($preview_js_path); // Attempt to load preview HTML if the theme provides it. $preview_html_path = DRUPAL_ROOT . '/' . (isset($info['preview_html']) ? drupal_get_path('theme', $theme) . '/' . $info['preview_html'] : drupal_get_path('module', 'color') . '/preview.html'); diff --git a/core/modules/contextual/contextual.module b/core/modules/contextual/contextual.module index 9280a7b..0273201 100644 --- a/core/modules/contextual/contextual.module +++ b/core/modules/contextual/contextual.module @@ -110,7 +110,7 @@ function contextual_library_info() { 'js' => array( // Add the JavaScript, with a group and weight such that it will run // before modules/contextual/contextual.toolbar.js. - $path . '/contextual.js' => array('group' => JS_LIBRARY, 'weight' => -2), + $path . '/contextual.js' => array(), ), 'css' => array( $path . '/css/contextual.module.css' => array(), @@ -129,9 +129,7 @@ function contextual_library_info() { 'title' => 'Contextual Links Toolbar Tab', 'version' => VERSION, 'js' => array( - // Add the JavaScript, with a group and weight such that it will run - // before modules/overlay/overlay-parent.js. - $path . '/contextual.toolbar.js' => array('group' => JS_LIBRARY, 'weight' => -1), + $path . '/contextual.toolbar.js' => array(), ), 'css' => array( $path . '/css/contextual.toolbar.css' => array(), diff --git a/core/modules/editor/editor.module b/core/modules/editor/editor.module index af2b8ea..f044430 100644 --- a/core/modules/editor/editor.module +++ b/core/modules/editor/editor.module @@ -98,7 +98,7 @@ function editor_library_info() { 'title' => 'Text Editor Dialog', 'version' => VERSION, 'js' => array( - $path . '/js/editor.dialog.js' => array('weight' => 2), + $path . '/js/editor.dialog.js' => array(), ), 'dependencies' => array( array('system', 'jquery'), diff --git a/core/modules/picture/picture.module b/core/modules/picture/picture.module index deba3b0..a2c3e92 100644 --- a/core/modules/picture/picture.module +++ b/core/modules/picture/picture.module @@ -89,7 +89,7 @@ function picture_library_info() { 'website' => 'http://drupal.org/node/1775530', 'version' => VERSION, 'js' => array( - drupal_get_path('module', 'picture') . '/picturefill/picturefill.js' => array('type' => 'file', 'weight' => -10, 'group' => JS_DEFAULT), + drupal_get_path('module', 'picture') . '/picturefill/picturefill.js' => array('type' => 'file', 'group' => JS_DEFAULT), ), 'dependencies' => array( array('system', 'matchmedia'), diff --git a/core/modules/system/system.module b/core/modules/system/system.module index a6a7786..6257036 100644 --- a/core/modules/system/system.module +++ b/core/modules/system/system.module @@ -1123,7 +1123,7 @@ function system_library_info() { 'title' => 'Drupal', 'version' => VERSION, 'js' => array( - 'core/misc/drupal.js' => array('group' => JS_LIBRARY, 'weight' => -18), + 'core/misc/drupal.js' => array(), ), 'dependencies' => array( array('system', 'domready'), @@ -1145,7 +1145,7 @@ function system_library_info() { 'website' => 'http://api.drupal.org/api/group/ajax/8', 'version' => VERSION, 'js' => array( - 'core/misc/ajax.js' => array('group' => JS_LIBRARY, 'weight' => 2), + 'core/misc/ajax.js' => array(), ), 'dependencies' => array( array('system', 'jquery'), @@ -1205,7 +1205,7 @@ function system_library_info() { 'title' => 'Drupal form library', 'version' => VERSION, 'js' => array( - 'core/misc/form.js' => array('group' => JS_LIBRARY, 'weight' => 1), + 'core/misc/form.js' => array(), ), 'dependencies' => array( array('system', 'jquery'), @@ -1220,10 +1220,10 @@ function system_library_info() { 'title' => 'Drupal Dialog', 'version' => VERSION, 'js' => array( - 'core/misc/dialog.js' => array('group' => JS_LIBRARY), + 'core/misc/dialog.js' => array(), ), 'css' => array( - 'core/misc/dialog.theme.css' => array('weight' => 1), + 'core/misc/dialog.theme.css' => array(), ), 'dependencies' => array( array('system', 'jquery'), @@ -1239,7 +1239,7 @@ function system_library_info() { 'title' => 'Drupal Dialog AJAX', 'version' => VERSION, 'js' => array( - 'core/misc/dialog.ajax.js' => array('group' => JS_LIBRARY, 'weight' => 3), + 'core/misc/dialog.ajax.js' => array(), ), 'dependencies' => array( array('system', 'jquery'), @@ -1255,7 +1255,7 @@ function system_library_info() { 'title' => 'Drupal states', 'version' => VERSION, 'js' => array( - 'core/misc/states.js' => array('group' => JS_LIBRARY, 'weight' => 1), + 'core/misc/states.js' => array(), ), 'dependencies' => array( array('system', 'jquery'), @@ -1270,7 +1270,7 @@ function system_library_info() { 'title' => 'Drupal tabledrag', 'version' => VERSION, 'js' => array( - 'core/misc/tabledrag.js' => array('group' => JS_LIBRARY, 'weight' => -1), + 'core/misc/tabledrag.js' => array(), ), 'dependencies' => array( array('system', 'jquery'), @@ -1287,7 +1287,7 @@ function system_library_info() { 'title' => 'Drupal responsive table API', 'version' => VERSION, 'js' => array( - 'core/misc/tableresponsive.js' => array('group' => JS_LIBRARY), + 'core/misc/tableresponsive.js' => array(), ), 'dependencies' => array( array('system', 'jquery'), @@ -1334,7 +1334,7 @@ function system_library_info() { 'title' => 'Drupal displace', 'version' => VERSION, 'js' => array( - 'core/misc/displace.js' => array('group' => JS_LIBRARY), + 'core/misc/displace.js' => array(), ), 'dependencies' => array( array('system', 'jquery'), @@ -1348,7 +1348,7 @@ function system_library_info() { 'title' => 'Drupal tabbing manager', 'version' => VERSION, 'js' => array( - 'core/misc/tabbingmanager.js' => array('group' => JS_LIBRARY), + 'core/misc/tabbingmanager.js' => array(), ), 'dependencies' => array( array('system', 'jquery'), @@ -1363,7 +1363,7 @@ function system_library_info() { 'title' => 'Drupal debounce', 'version' => VERSION, 'js' => array( - 'core/misc/debounce.js' => array('group' => JS_LIBRARY), + 'core/misc/debounce.js' => array(), ), 'dependencies' => array( // @todo remove drupal dependency. @@ -1377,7 +1377,7 @@ function system_library_info() { 'website' => 'https://github.com/ded/domready', 'version' => 'master', 'js' => array( - 'core/assets/vendor/domready/ready.min.js' => array('group' => JS_LIBRARY, 'weight' => -21), + 'core/assets/vendor/domready/ready.min.js' => array(), ), ); @@ -1387,7 +1387,7 @@ function system_library_info() { 'website' => 'http://jquery.com', 'version' => '2.0', 'js' => array( - 'core/assets/vendor/jquery/jquery.js' => array('group' => JS_LIBRARY, 'weight' => -20), + 'core/assets/vendor/jquery/jquery.js' => array(), ), ); @@ -1397,7 +1397,7 @@ function system_library_info() { 'website' => 'http://plugins.jquery.com/project/once', 'version' => '1.2', 'js' => array( - 'core/assets/vendor/jquery-once/jquery.once.js' => array('group' => JS_LIBRARY, 'weight' => -19), + 'core/assets/vendor/jquery-once/jquery.once.js' => array(), ), 'dependencies' => array( array('system', 'jquery'), @@ -1508,7 +1508,6 @@ function system_library_info() { 'js' => array( 'core/assets/vendor/html5shiv/html5.js' => array( 'group' => JS_LIBRARY, - 'weight' => -22, 'browsers' => array('IE' => 'lte IE 8', '!IE' => FALSE), ), ), @@ -1525,7 +1524,6 @@ function system_library_info() { 'group' => JS_LIBRARY, 'preprocess' => 0, 'scope' => 'header', - 'weight' => -21, ), ), ); @@ -1538,7 +1536,6 @@ function system_library_info() { 'css' => array( 'core/assets/vendor/normalize-css/normalize.css' => array( 'every_page' => TRUE, - 'weight' => -10, ), ), ); @@ -1549,7 +1546,7 @@ function system_library_info() { 'website' => 'http://jqueryui.com', 'version' => '1.10.2', 'js' => array( - 'core/assets/vendor/jquery.ui/ui/jquery.ui.core.js' => array('group' => JS_LIBRARY, 'weight' => -11), + 'core/assets/vendor/jquery.ui/ui/jquery.ui.core.js' => array(), ), 'css' => array( 'core/assets/vendor/jquery.ui/themes/base/jquery.ui.core.css' => array(), @@ -1826,7 +1823,7 @@ function system_library_info() { 'website' => 'http://docs.jquery.com/UI/Widget', 'version' => $libraries['jquery.ui.core']['version'], 'js' => array( - 'core/assets/vendor/jquery.ui/ui/jquery.ui.widget.js' => array('group' => JS_LIBRARY, 'weight' => -10), + 'core/assets/vendor/jquery.ui/ui/jquery.ui.widget.js' => array(), ), 'dependencies' => array( array('system', 'jquery.ui.core'), @@ -1837,7 +1834,7 @@ function system_library_info() { 'website' => 'http://jqueryui.com/demos/effect/', 'version' => $libraries['jquery.ui.core']['version'], 'js' => array( - 'core/assets/vendor/jquery.ui/ui/jquery.effects.core.js' => array('group' => JS_LIBRARY, 'weight' => -9), + 'core/assets/vendor/jquery.ui/ui/jquery.effects.core.js' => array(), ), ); $libraries['jquery.effects.blind'] = array( @@ -2003,7 +2000,7 @@ function system_library_info() { 'website' => 'http://underscorejs.org/', 'version' => '1.4.0', 'js' => array( - 'core/assets/vendor/underscore/underscore.js' => array('group' => JS_LIBRARY, 'weight' => -20), + 'core/assets/vendor/underscore/underscore.js' => array(), ), ); @@ -2013,7 +2010,7 @@ function system_library_info() { 'website' => 'http://backbonejs.org/', 'version' => '0.9.2', 'js' => array( - 'core/assets/vendor/backbone/backbone.js' => array('group' => JS_LIBRARY, 'weight' => -19), + 'core/assets/vendor/backbone/backbone.js' => array(), ), 'dependencies' => array( array('system', 'underscore'), diff --git a/core/modules/tour/tour.module b/core/modules/tour/tour.module index 48e44f6..8ac130f 100644 --- a/core/modules/tour/tour.module +++ b/core/modules/tour/tour.module @@ -30,7 +30,7 @@ function tour_library_info() { 'js' => array( // Add the JavaScript, with a group and weight such that it will run // before modules/overlay/overlay-parent.js. - $path . '/js/tour.js' => array('group' => JS_LIBRARY, 'weight' => -1), + $path . '/js/tour.js' => array(), ), 'dependencies' => array( array('system', 'jquery'), diff --git a/core/modules/views/views.module b/core/modules/views/views.module index 85aecf9..b5cd231 100644 --- a/core/modules/views/views.module +++ b/core/modules/views/views.module @@ -823,7 +823,7 @@ function views_library_info() { 'title' => 'Views Contextual links', 'version' => VERSION, 'js' => array( - "$path/js/views-contextual.js" => array('group' => JS_LIBRARY, 'weight' => -10), + "$path/js/views-contextual.js" => array(), ), 'dependencies' => array( array('system', 'jquery'),