Commit 2656a846 authored by alexpott's avatar alexpott
Browse files

Issue #2914710 by droplet: JS codestyle: padded-blocks

parent 4d263489
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
"array-callback-return": "off", "array-callback-return": "off",
"vars-on-top": "off", "vars-on-top": "off",
"prefer-rest-params": "off", "prefer-rest-params": "off",
"padded-blocks": "off",
"prefer-const": "off" "prefer-const": "off"
} }
} }
...@@ -297,5 +297,4 @@ ...@@ -297,5 +297,4 @@
* is already in the URL. * is already in the URL.
*/ */
$(document).on('click.form-fragment', 'a[href*="#"]', debouncedHandleFragmentLinkClickOrHashChange); $(document).on('click.form-fragment', 'a[href*="#"]', debouncedHandleFragmentLinkClickOrHashChange);
}(jQuery, Drupal, Drupal.debounce)); }(jQuery, Drupal, Drupal.debounce));
...@@ -159,7 +159,6 @@ ...@@ -159,7 +159,6 @@
* @listens event:drupalContextualLinkAdded * @listens event:drupalContextualLinkAdded
*/ */
$(document).on('drupalContextualLinkAdded', (event, data) => { $(document).on('drupalContextualLinkAdded', (event, data) => {
// When the first contextual link is added to the page set Edit Mode. // When the first contextual link is added to the page set Edit Mode.
$('body').once('settings_tray.edit_mode_init').each(() => { $('body').once('settings_tray.edit_mode_init').each(() => {
const editMode = localStorage.getItem('Drupal.contextualToolbar.isViewing') === 'false'; const editMode = localStorage.getItem('Drupal.contextualToolbar.isViewing') === 'false';
......
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