From 2656a846caeaeb51d79c12f84cc00d43831e35e6 Mon Sep 17 00:00:00 2001 From: Alex Pott <alex.a.pott@googlemail.com> Date: Wed, 11 Oct 2017 12:11:05 +0100 Subject: [PATCH] Issue #2914710 by droplet: JS codestyle: padded-blocks --- core/.eslintrc.passing.json | 1 - core/misc/form.es6.js | 1 - core/modules/settings_tray/js/settings_tray.es6.js | 1 - 3 files changed, 3 deletions(-) diff --git a/core/.eslintrc.passing.json b/core/.eslintrc.passing.json index 253aee9da5ff..a7b1dbaa4b97 100644 --- a/core/.eslintrc.passing.json +++ b/core/.eslintrc.passing.json @@ -22,7 +22,6 @@ "array-callback-return": "off", "vars-on-top": "off", "prefer-rest-params": "off", - "padded-blocks": "off", "prefer-const": "off" } } diff --git a/core/misc/form.es6.js b/core/misc/form.es6.js index 8f535dac8aea..8004125bd6dc 100644 --- a/core/misc/form.es6.js +++ b/core/misc/form.es6.js @@ -297,5 +297,4 @@ * is already in the URL. */ $(document).on('click.form-fragment', 'a[href*="#"]', debouncedHandleFragmentLinkClickOrHashChange); - }(jQuery, Drupal, Drupal.debounce)); diff --git a/core/modules/settings_tray/js/settings_tray.es6.js b/core/modules/settings_tray/js/settings_tray.es6.js index b4edd840c591..7ce08dabb866 100644 --- a/core/modules/settings_tray/js/settings_tray.es6.js +++ b/core/modules/settings_tray/js/settings_tray.es6.js @@ -159,7 +159,6 @@ * @listens event:drupalContextualLinkAdded */ $(document).on('drupalContextualLinkAdded', (event, data) => { - // When the first contextual link is added to the page set Edit Mode. $('body').once('settings_tray.edit_mode_init').each(() => { const editMode = localStorage.getItem('Drupal.contextualToolbar.isViewing') === 'false'; -- GitLab