Commit 05a2984c authored by alexpott's avatar alexpott
Browse files

Issue #1684876 by droplet, nod_: JSHint toolbar.

parent affc74cc
......@@ -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++) {
......@@ -226,9 +225,7 @@ Drupal.toolbar.mediaQueryChangeHandler = function (mql) {
Drupal.toolbar.orientationChangeHandler = function (event) {
event.preventDefault();
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 +242,6 @@ Drupal.toolbar.orientationChangeHandler = function (event) {
* to vertical.
*/
function changeOrientation (newOrientation, isLock) {
var oldOrientation = orientation;
if (isLock) {
locked = (newOrientation === 'vertical');
if (locked) {
......
......@@ -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.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment