diff --git a/core/modules/toolbar/js/toolbar.js b/core/modules/toolbar/js/toolbar.js index 50c6cdd..06446be 100644 --- a/core/modules/toolbar/js/toolbar.js +++ b/core/modules/toolbar/js/toolbar.js @@ -178,7 +178,6 @@ Drupal.toolbar.toggleTray = function (event) { Drupal.toolbar.adjustPlacement = function (event, offsets) { // Set the top of the all the trays to the height of the bar. var barHeight = $toolbar.find('.bar').outerHeight(); - var height = barHeight; var bhpx = barHeight + 'px'; var tray; for (var i = 0, il = $trays.length; i < il; i++) { @@ -228,7 +227,6 @@ Drupal.toolbar.orientationChangeHandler = function (event) { event.stopPropagation(); var $button = $(event.target); var orientation = event.target.value; - var $tray = $button.closest('.tray'); changeOrientation(orientation, true); // Update the page and toolbar dimension indicators. updatePeripherals(); @@ -245,7 +243,6 @@ Drupal.toolbar.orientationChangeHandler = function (event) { * to vertical. */ function changeOrientation (newOrientation, isLock) { - var oldOrientation = orientation; if (isLock) { locked = (newOrientation === 'vertical'); if (locked) { diff --git a/core/modules/toolbar/js/toolbar.menu.js b/core/modules/toolbar/js/toolbar.menu.js index f05bcb0..3c32c50 100644 --- a/core/modules/toolbar/js/toolbar.menu.js +++ b/core/modules/toolbar/js/toolbar.menu.js @@ -34,8 +34,6 @@ var activeItem = drupalSettings.basePath + drupalSettings.currentPath; // Close open sibling menus. var $openItems = $item.siblings().filter('.open'); toggleList($openItems, false); - // Save link of the closest open item through a unique selector. - var href = $toggle.siblings('a[href]').attr('href'); } /** * Toggle the open/close state of a list is a menu.